1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-13 15:55:29 +02:00
tldr/pages/common/javac.md
Vitor Henrique 61405c6e0e
pages*: fix small typos (#11850)
* pages*: fix small typos

* pages/*: make help and version commands consistent

* pages/*: follow "path/to/file" pattern

* nop: generic display help wording
2023-12-27 12:11:30 +05:30

20 lines
512 B
Markdown

# javac
> Java application compiler.
> More information: <https://docs.oracle.com/en/java/javase/20/docs/specs/man/javac.html>.
- Compile a `.java` file:
`javac {{path/to/file.java}}`
- Compile several `.java` files:
`javac {{path/to/file1.java}} {{path/to/file2.java}} {{path/to/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}} {{path/to/file.java}}`