tldr/pages/common/java.md

17 lines
303 B
Markdown

# java
> Java Application Launcher.
> More information: <https://java.com>.
- Execute a java .class file that contains a main method by using just the class name:
`java {{classname}}`
- Execute a .jar program:
`java -jar {{filename.jar}}`
- Display JDK, JRE and HotSpot versions:
`java -version`