The Classpath:
*Adding all JARs in a directory to the classpath
If you want to add all the JARs in directory to the classpath, you can do this concisely using classpath wildcard syntax; for example:
someFolder/*
This tells the JVM to add all JAR and ZIP files in the someFolder directory to the classpath. This syntax can be used in a -cp argument, a CLASSPATH environment variable, or a Class-Path attribute in an executable JAR file’s manifest file.See Setting the Class Path: Class Path Wild Cards for examples and caveats.
Notes: