1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-24 01:22:10 +02:00
tldr/pages/common/javac.md
K.B.Dharun Krishna 202953761d
java*: update links (#9436)
Signed-off-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>

Signed-off-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2022-10-30 23:40:02 +01:00

472 B

javac

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

  • Compile a .java file:

javac {{file.java}}

  • Compile several .java files:

javac {{file1.java}} {{file2.java}} {{file3.java}}

  • Compile all .java files in current directory:

javac {{*.java}}

  • Compile a .java file and place the resulting class file in a specific directory:

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