1. Include the jar name in the set classpath. 2. Include the jar name in the -classpath command line option. 3. Include the jar name in the Class-Path option in the manifest. 4. In Java 1.6+, use a wildcard to include all jars in a directory into the set classpath or the command line -classpath.
rem use of wildcard in classpath to add all jars in C:\jardir and E:\morejars java.exe -classpath C:\jardir\*;E:\morejars\*