The classpath is a sequence of entries which are directory pathnames, JAR or ZIP file pathnames, or JAR / ZIP wildcard specifications.
-classpath
) or as an environment variable, the entries must be separated with ;
(semicolon) characters on Windows, or :
(colon) characters on other platforms (Linux, UNIX, MacOSX and so on).Class-Path
element in a JAR file’s MANIFEST.MF
, use a single space to separate the entries.Sometimes it is necessary to embed a space in a classpath entry
export CLASSPATH="/home/user/My JAR Files/foo.jar:second.jar"
(The details may depend on the command shell that you use.)
Class-Path: /home/user/My%20JAR%20Files/foo.jar second.jar