javap | The Java Class Disassembler |
javap [ options ] classnames
javap reads the class files specified by the class names on the command line and prints a human-readable version of the API defined by those classes. javap can also disassemble the specified classes, displaying the Java VM byte codes for the methods they contain.
Enables backward compatibility with the output of the Java 1.1 version of javap . This option exists for programs that depend on the precise output format of javap . Java 1.2 and later.
Specifies the search path for the system classes. See javac for information about this rarely used option. Java 1.2 and later.
Displays the code (i.e., Java VM byte codes) for each method of each specified class. This option always disassembles all methods, regardless of their visibility level.
Specifies the path javap uses to look up the classes named on the command line. This option overrides the path specified by the CLASSPATH environment variable. Prior to Java 1.2, this argument specifies the path for all system classes, extensions, and application classes. In Java 1.2 and later, it specifies only the application classpath. See also -bootclasspath and -exTDirs . See java and javac for more information on the classpath.
Specifies one or more directories that should be searched for extension classes. See javac for information about this rarely used option. Java 1.2 and later.
Pass the option javaopt to the Java interpreter.
Displays tables of line numbers and local variables , if available in the class files. This option is typically useful only when used with -c . The javac compiler does not include local variable information in its class files by default. See -g and related options to javac .
Prints a usage message and exits.
Passes the specified javaoption directly to the Java interpreter.
Displays package-visible, protected , and public class members , but not private members. This is the default.
Displays all class members, including private members.
Displays only protected and public members.
Displays only public members of the specified classes.
Outputs the class member declarations using the internal VM type and method signature format instead of the more readable source-code format.
Specifies verbose mode. Outputs additional information (in the form of Java comments) about each member of each specified class.
Specifies the default search path for application classes. The -classpath option overrides this environment variable. See java for a discussion of the classpath.
java , javac