All apps/Java

Java

java

The Java application launcher.

Runs as java|macOS, Linux, Windows|openjdk.org

Command form

ai-draft · 2 tasks · 6 fields

Run a main class or a JAR file. System properties (-D), JVM tuning flags and program arguments are left out; the long --classpath spelling is not used.

Opens the form; the finished command lands at your prompt, unrun
otty gui java
Launch a Java programExample values, fixed in this page — nothing here reaches a terminal
Basic
JAR file*
file
TasksEach one presets the form for one job
Run a JAR
jar
Run a class
classpathmainclass
ParametersOnly these flags are editable in the form
JAR file
Launch the main class of this JAR file.
path
-jar
Main class
Class to launch when not using a JAR.
string · positional 0
Class path
Directories and zip/jar files to search.
string
-cp
Show version and continue
Print product version to the output stream and continue.
boolean
-showversion--show-version
Dry run
Create the VM and load the main class but do not run main.
boolean
--dry-run
Print version
Print product version and exit.
boolean
--version-version
SourcesEvery flag above is checked against these
src
completion

github.com

Before it fills your prompt, Otty checks the installed java against its version. A form that does not match your version is not offered.