javac
Java application compiler. More information: https://docs.oracle.com/en/java/javase/20/docs/specs/man/javac.html.
-
Compile a
.javafile:
javac {{file.java}} -
Compile several
.javafiles:
javac {{file1.java}} {{file2.java}} {{file3.java}} -
Compile all
.javafiles in current directory:
javac {{*.java}} -
Compile a
.javafile and place the resulting class file in a specific directory:
javac -d {{path/to/directory}} {{file.java}}
License and Disclaimer
The content on this page is copyright © 2014—present the tldr-pages team and contributors.This page is used with permission under Creative Commons Attribution 4.0 International License.
While we do attempt to make sure content is accurate, there isn't a warranty of any kind.