mirror of https://github.com/CrimsonTome/tldr.git
20 lines
378 B
Markdown
20 lines
378 B
Markdown
# javac
|
|
|
|
> Java Application Compiler.
|
|
|
|
- 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/some/directory}} {{file.java}}`
|