How to include .jar files to compile .java file in CMD

less than 1 minute read

> javac -cp ".;[PATH]/[JAR_FILE_NAME].jar;" [JAVA_FILE_NAME].java

ex) javac -cp “.;C:\Users\user\Desktop\test\test.jar;” test.java

Categories:

Updated: