Files
tldr/pages/common/java.md
J053Fabi0 b172d97667 <java>: page edit; add command
Custom input and output when compiling a class with the java command
2017-12-30 11:32:10 -07:00

19 lines
366 B
Markdown

# 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`
- Custom input and output files. Preferably .txt files
`java {{classname}} <{{inputfile}}> outputfile`