java <mainclass>

Launch a Java application

Arguments

NameDescription
mainclassTo launch a class file

Options

NameDescription
-jar <JAR file>To launch the main class in a JAR file
-DSet a system property, -D<NAME>=<VALUE>
--help, -h, -?Show help for java
--version, -versionPrint product version to the error stream and exit
-showversion, --show-versionPrint product version to the output stream and continue
--dry-runCreate VM and load main class but do not execute main method
--classpath, -cp <search files>Class search path of directories and zip/jar files