The definitions for the standard options.
- -agentlib:<libname>[=<options>]
- Loads native agent library <libname>;
for example -agentlib:hprof. For more information,
specify -agentlib:jdwp=help and -agentlib:hprof=help on
the command line.
- -agentpath:libname[=<options>]
- Loads native agent library by full path name.
- -assert
- Prints help on assert-related options.
- -cp or -classpath <directories and .zip or .jar files
separated by :>
- Sets the search path for application classes and resources. If -classpath and -cp are
not used and CLASSPATH is not set, the user classpath
is, by default, the current directory (.).
- -D<property_name>=<value>
- Sets a system property.
- -help or -?
- Prints a usage message.
- -javaagent:<jarpath>[=<options>]
- Loads Java™ programming
language agent. For more information, see the java.lang.instrument
API documentation.
- -jre-restrict-search
- Includes user private JREs in the version search.
- -no-jre-restrict-search
- Excludes user private JREs in the version search.
- -showversion
- Prints product version and continues.
- -verbose:[class,gc,dynload,sizes,stack,jni]
- Enables verbose output.
- -verbose:class
- Writes an entry to stderr for each class that is loaded.
- -verbose:gc
- See Using verbose:gc information.
- -verbose:dynload
- Provides detailed information as each class is loaded by the JVM,
including:
- The class name and package
- For class files that were in a .jar file,
the name and directory path of the .jar
- Details of the size of the class and the time taken to load the
class
The data is written out to stderr. An example of the output follows:
<Loaded java/lang/String from /myjdk/sdk/jre/lib/ppc/softrealtime/jclSC160/vm.jar>
<Class size 17258; ROM size 21080; debug size 0>
<Read time 27368 usec; Load time 782 usec; Translate time 927 usec>
Note: Classes loaded
from the shared class cache do not appear in -verbose:dynload output. Use -verbose:class for
information about these classes.
- -verbose:sizes
- Writes information to stderr describing the amount of memory used
for the stacks and heaps in the JVM
- -verbose:stack
- Writes information to stderr describing Java and C stack usage.
- -verbose:jni
- Writes information to stderr describing the JNI services called
by the application and JVM.
- -version
- Prints
out version information for the non-real-time mode.
- -version:<value>
- Requires the specified version to run.
- -X
- Prints help on nonstandard options.