I have a java file with jar dependencies an I would like to compile them using command in command prompt from windows PC. I have placed all 3 jar files and java file in same folder of D drive. Do i need to set class path in environmental variables? my jar file names are juh-4.1.2.jar, ridl-4.1.3.jar and unoil-4.1.2.jar?
Any help will be greatly appreciated. Thanks in advance
You should only need to javac the input files and pass the -cp flag
Command should look something like
C:\\Path\\To\\JDK\\javac.exe -cp "D:\\pathtojar1.jar; D: [... ]" *.java
EDIT: Use CP Flag, didn't see you had external .jar dependencies
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.