OS Manuals

/usr/lib/jvm/java-1.7-openjdk/jre/bin/java

OpenJDK 7 Runtime (headless)

From openjdk-7-jre-base 7.321.2.6.28-r11 (os), captured 2026-11-05 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>
                  require the specified version to run
    -showversion  print product version and continue
    -jre-restrict-search | -no-jre-restrict-search
                  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 (17)
OptionDescriptionSource
-d32use a 32-bit data model if availablehelp
-d64use a 64-bit data model if availablehelp
-serverto select the "server" VM The default VM is server, because you are running on a server-class machine.help
-D name>=<valueset a system propertyhelp
-verbose class|gc|jnienable verbose outputhelp
-versionprint product version and exithelp
-showversionprint product version and continuehelp
-? -helpprint this help messagehelp
-Xprint help on non-standard optionshelp
-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

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