1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2024-11-01 19:17:57 +01:00
tldr/pages/common/java.md
2016-01-08 09:38:59 +01:00

262 B

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