tldr/pages/common/javac.md
2016-01-27 00:23:26 -05:00

20 lines
398 B
Markdown

# javac
> Java Application Compiler.
- Compile a .java file:
`javac {{filename.java}}`
- Compile several .java files:
`javac {{filename1.java}} {{filename2.java}} {{filename3.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}} {{filename.java}}`