Standard options

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/ppc64/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.


© Copyright IBM Corporation 2005, 2010. All Rights Reserved.
© Copyright Sun Microsystems, Inc. 1997, 2007, 901 San Antonio Rd., Palo Alto, CA 94303 USA. All rights reserved.
US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
This information center is powered by Eclipse technology. (http://www.eclipse.org/)