How to pass multiple jar files while using javac – compiling java classes
If you have single jar file, you can pass as: lets assume you are compiling file.java
javac path/to/file.java -classpath "path/to/jar/file.jar" -d classpath
But how about if you have multiple jar files to be included in the class path?
If you are on windows you can list the jar files separated by semi colon(;) and in unix you can pass with colon(:)
javac path/to/java/file.java -classpath "file1.jar:file2.jar:dir/*"
The last example is for unix environment but you can apply it to windows with proper path and semicolon