javac Command Examples

Java application compiler. More information: https://docs.oracle.com/en/java/javase/20/docs/specs/man/javac.html.

javac {{path/to/file.java}}

javac {{path/to/file1.java path/to/file2.java ...}}

javac {{*.java}}

javac -d {{path/to/directory}} {{path/to/file.java}}