OS Manuals

/usr/lib/jvm/java-1.8-amazon-corretto/bin/java

Corretto 8 Java Runtime Environment

From corretto-8-jre 8.512.09.1-r1 (enterprise-packages), captured 2026-11-08 by running java -help (exit 0). permalink

Usage: java [-options] class [args...]
           (to execute a class)
   or  java [-options] -jar jarfile [args...]
           (to execute a jar file)
where options include:
    -d32	  use a 32-bit data model if available
    -d64	  use a 64-bit data model if available
    -server	  to select the "server" VM
                  The default VM is server,
                  because you are running on a server-class machine.


    -cp <class search path of directories and zip/jar files>
    -classpath <class search path of directories and zip/jar files>
                  A : separated list of directories, JAR archives,
                  and ZIP archives to search for class files.
    -D<name>=<value>
                  set a system property
    -verbose:[class|gc|jni]
                  enable verbose output
    -version      print product version and exit
    -version:<value>
                  Warning: this feature is deprecated and will be removed
                  in a future release.
                  require the specified version to run
    -showversion  print product version and continue
    -jre-restrict-search | -no-jre-restrict-search
                  Warning: this feature is deprecated and will be removed
                  in a future release.
                  include/exclude user private JREs in the version search
    -? -help      print this help message
    -X            print help on non-standard options
    -ea[:<packagename>...|:<classname>]
    -enableassertions[:<packagename>...|:<classname>]
                  enable assertions with specified granularity
    -da[:<packagename>...|:<classname>]
    -disableassertions[:<packagename>...|:<classname>]
                  disable assertions with specified granularity
    -esa | -enablesystemassertions
                  enable system assertions
    -dsa | -disablesystemassertions
                  disable system assertions
    -agentlib:<libname>[=<options>]
                  load native agent library <libname>, e.g. -agentlib:hprof
                  see also, -agentlib:jdwp=help and -agentlib:hprof=help
    -agentpath:<pathname>[=<options>]
                  load native agent library by full pathname
    -javaagent:<jarpath>[=<options>]
                  load Java programming language agent, see java.lang.instrument
    -splash:<imagepath>
                  show splash screen with specified image
See http://www.oracle.com/technetwork/java/javase/documentation/index.html for more details.
Options (41)
OptionDescriptionSource
-d32Runs the application in a 32-bit environment.help + man
-d64Runs the application in a 64-bit environment.help + man
-serverto select the "server" VM The default VM is server, because you are running on a server-class machine.help + man
-D name>=<valueset a system propertyhelp
-verbose class|gc|jnienable verbose outputhelp
-versionDisplays version information and then exits.help + man
-showversionDisplays version information and continues execution of the application.help + man
-? -helpprint this help messagehelp
-XDisplays help for all available -X options.help + man
-ea :<packagename>...|:<classnamehelp
-enableassertions :<packagename>...|:<classnameenable assertions with specified granularityhelp
-da :<packagename>...|:<classnamehelp
-disableassertions :<packagename>...|:<classnamedisable assertions with specified granularityhelp
-agentlib libname>[=<optionsload native agent library <libname>, e.g. -agentlib:hprof see also, -agentlib:jdwp=help and -agentlib:hprof=helphelp
-agentpath pathname>[=<optionsload native agent library by full pathnamehelp
-javaagent jarpath>[=<optionsload Java programming language agent, see java.lang.instrumenthelp
-splash imagepathshow splash screen with specified imagehelp
-clientSelects the Java HotSpot Client VM. (in the manual page but not in --help)man
-Dproperty valueSets a system property value. (in the manual page but not in --help)man
-jar filenameExecutes a program encapsulated in a JAR file. (in the manual page but not in --help)man
-jre-restrict-searchIncludes user-private JREs in the version search. (in the manual page but not in --help)man
-no-jre-restrict-searchExcludes user-private JREs from the version search. (in the manual page but not in --help)man
-XbatchDisables background compilation. (in the manual page but not in --help)man
-XcompForces compilation of methods on first invocation. (in the manual page but not in --help)man
-XdebugDoes nothing. (in the manual page but not in --help)man
-XdiagShows additional diagnostic messages. (in the manual page but not in --help)man
-XfutureEnables strict class-file format checks that enforce close conformance to the class-file format specification. (in the manual page but not in --help)man
-XintRuns the application in interpreted-only mode. (in the manual page but not in --help)man
-XinternalversionDisplays more detailed JVM version information than the -version option, and then exits. (in the manual page but not in --help)man
-Xmaxjitcodesize sizeSpecifies the maximum code cache size (in bytes) for JIT-compiled code. (in the manual page but not in --help)man
-XmixedExecutes all bytecode by the interpreter except for hot methods, which are compiled to native code. (in the manual page but not in --help)man
-XmnsizeSets the initial and maximum size (in bytes) of the heap for the young generation (nursery). (in the manual page but not in --help)man
-XmssizeSets the initial size (in bytes) of the heap. (in the manual page but not in --help)man
-XmxsizeSpecifies the maximum size (in bytes) of the memory allocation pool in bytes. (in the manual page but not in --help)man
-XnoclassgcDisables garbage collection (GC) of classes. (in the manual page but not in --help)man
-XprofProfiles the running program and sends profiling data to standard output. (in the manual page but not in --help)man
-XrsReduces the use of operating system signals by the JVM. (in the manual page but not in --help)man
-XsssizeSets the thread stack size (in bytes). (in the manual page but not in --help)man
-XusealtsigsUse alternative signals instead of SIGUSR1 and SIGUSR2 for JVM internal signals. (in the manual page but not in --help)man
-XincgcEnables incremental garbage collection. (in the manual page but not in --help)man
-XrunlibnameLoads the specified debugging/profiling library. (in the manual page but not in --help)man

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.