code to explanationSat, 27 May 2023
javac -cp .;lib/* -d output_directory *.java
The javac command compiles java code and puts the class files in the output_directory. The -cp option specifies the classpath where the compiler should look for imported classes.