2015-12-29 02:11:07 +00:00
|
|
|
# javac
|
|
|
|
|
|
|
|
> Java Application Compiler.
|
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Compile a .java file:
|
2015-12-29 02:11:07 +00:00
|
|
|
|
|
|
|
`javac {{filename.java}}`
|
2016-01-15 05:51:53 +00:00
|
|
|
|
|
|
|
- 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}}`
|