

When you use -jar, the specified JAR file is the source of all user classes, and other class path settings are ignored. The jarfile argument is the name of a JAR file with a manifest that contains a line in the form Main-Class: classname that defines the class with the public static void main(String args) method that serves as your application's starting point. jar jarfile Executes a program encapsulated in a JAR file.

Command-line entries following classname are the arguments for the main method. Mainclass Specifies the name of the class to be launched. See Overview of Java Options for a description of available options. Java source-file options Optional: Specifies command-line options separated by spaces. Java - launch a Java application Synopsis Keeping the Java Heap Small and Reducing the Dynamic Footprint of Embedded Applications.
CLOUD NATIVE JAVA SOURCE CODE EXAMPLE ARCHIVE

Enable Logging with the JVM Unified Logging Framework.Examples of Using Argument Files with Paths.Example of Line Continuation with Leading Spaces in an Argument File.Example of an EOL Escape Used to Force Concatenation of Lines in an Argument File.Example of a Backslash Character Escaped with Another Backslash Character in an Argument File.Example of Open or Partial Quotes in an Argument File.Advanced Garbage Collection Options for Java.Advanced Serviceability Options for Java.Using the JDK_JAVA_OPTIONS Launcher Environment Variable.Using Source-File Mode to Launch Single-File Source-Code Programs.
