Disassembles one or more class files.
javap [options] classfile...
One or more classes separated by spaces to be processed for annotations such as DocFooter.class. You can specify a class that can be found in the class path, by its file name or with a URL such as file:///home/user/myproject/src/DocFooter.class
.
Prints a help message for the javap
command.
Prints release information.
Prints line and local variable tables.
Shows only public classes and members.
Shows only protected and public classes and members.
Shows all classes and members.
Passes the specified option to the JVM. For example:
javap -J-version javap -J-Djava.security.manager -J-Djava.security.policy=MyPolicy MyClassName
For more information about JVM options, see the
command documentation.java
(1)
Prints internal type signatures.
Shows system information (path, size, date, MD5 hash) of the class being processed.
Shows static final
constants.
Prints disassembled code, for example, the instructions that comprise the Java bytecodes, for each of the methods in the class.
Prints stack size, number of locals and arguments for methods.
Specifies the path the javap
command uses to look up classes. Overrides the default or the CLASSPATH
environment variable when it is set.
Specifies the path from which to load bootstrap classes. By default, the bootstrap classes are the classes that implement the core Java platform located in jre/lib/rt.jar
and several other JAR files.
Overrides the location at which installed extensions are searched for. The default location for extensions is the value of java.ext.dirs
.