
It’s very common that a Java program depends on one or more external libraries (jar files). Compile a Java source file which has dependencies

So make sure you included this directory in the PATH environment variable so it can be accessed anywhere in command line prompt.This tutorial summarizes common practices for compiling Java source files from command line. The tool is located under JDK_HOME\bin directory.

You know, the Java Development Kit (JDK) provides javac which is the Java compiler program. Specify Java source compatibility version.Compile a Java source file which has dependencies.In this Java tools tutorial, you will learn how to use the Java compiler via the javac command to compile Java source files (.java) into bytecode files (.class).
