How to compile multiple java source files in command line March 11, 2023 by Tarik Try the following: javac file1.java file2.java