Declare depended jar libraries in configuration file
These two configure items are both to add depended jar files into java classpath.
The difference between 'classpath' and 'libs' is that, 'classpath' is to specify jar files, while 'libs' is to specify a directory which contains jar files.
You can use one or more 'classpath' items in one configuration file.
Each 'classpath' item can be followed by one or more, absolute or relative jar file paths. If there are more than one jar file paths after a 'classpath', use ';' as separator on Windows, use ':' as separator on Linux. For example:
classpath ./classes classpath ./lib/a.jar classpath lib/b.jar;lib/c.jar
classpath *.jar[since V2.1.6]
Since V2.1.6, it is supported to use wildcard (*, ?) in the filename, to specify more than one jar files at a time. For example:
classpath *.jar classpath lib/*.jar classpath ../*/classes/
Configure item 'libs' is to specify a directory, in which all jar files will be added to java classpath.
You can use one or more 'libs' items in one configuration file. Each 'libs' item can be followed by one directory only. For example:
All jar files in 'lib' directory will be added to java classpath, it is equivalent to:
You can configure the classpath with the help of Configure Assistant.
- See Step 7: Finished page for usage of Configure Assistant.