mirror of https://github.com/CrimsonTome/tldr.git
17 lines
263 B
Markdown
17 lines
263 B
Markdown
|
# java
|
||
|
|
||
|
> Java Application Launcher.
|
||
|
|
||
|
- Execute a java .class file that contains a main method by using just the class name.
|
||
|
|
||
|
`java {{filename}}`
|
||
|
|
||
|
- Execute a .jar program.
|
||
|
|
||
|
`java -jar {{filename.jar}}`
|
||
|
|
||
|
- Display JDK, JRE and HotSpot versions.
|
||
|
|
||
|
`java -version`
|
||
|
|