java <mainclass>
Launch a Java application
Arguments
Name | Description |
---|
mainclass | To launch a class file |
Options
Name | Description |
---|
-jar <JAR file> | To launch the main class in a JAR file |
-D | Set a system property, -D<NAME>=<VALUE> |
--help, -h, -? | Show help for java |
--version, -version | Print product version to the error stream and exit |
-showversion, --show-version | Print product version to the output stream and continue |
--dry-run | Create VM and load main class but do not execute main method |
--classpath, -cp <search files> | Class search path of directories and zip/jar files |