mirror of
https://github.com/tldr-pages/tldr.git
synced 2026-10-29 18:05:30 +08:00
create java.md
initial
This commit is contained in:
committed by
Starbeamrainbowlabs
parent
1e23303e5f
commit
9dbe942bd7
@@ -0,0 +1,20 @@
|
||||
# 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`
|
||||
|
||||
- Display usage information for the java command:
|
||||
|
||||
`java -help`
|
||||
Reference in New Issue
Block a user