tldr/pages/common/java.md

21 lines
368 B
Markdown
Raw Normal View History

2015-12-16 08:51:52 +00:00
# java
> Java Application Launcher.
2019-06-05 08:55:40 +01:00
> More information: <https://java.com>.
2015-12-16 08:51:52 +00:00
- Execute a java .class file that contains a main method by using just the class name:
2015-12-16 08:51:52 +00:00
2017-12-31 04:37:37 +00:00
`java {{classname}}`
- Execute a .jar program:
2015-12-16 08:51:52 +00:00
`java -jar {{filename.jar}}`
- Display JDK, JRE and HotSpot versions:
2015-12-16 08:51:52 +00:00
`java -version`
2019-10-11 20:03:27 +01:00
- Display usage information for the java command:
`java -help`