1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2024-11-02 01:18:00 +01:00
tldr/pages/common/java.md

16 lines
262 B
Markdown
Raw Normal View History

2015-12-16 09:51:52 +01:00
# java
> Java Application Launcher.
- Execute a java .class file that contains a main method by using just the class name:
2015-12-16 09:51:52 +01:00
`java {{filename}}`
- Execute a .jar program:
2015-12-16 09:51:52 +01:00
`java -jar {{filename.jar}}`
- Display JDK, JRE and HotSpot versions:
2015-12-16 09:51:52 +01:00
`java -version`