Team LiB
Previous Section Next Section

javapThe Java Class Disassembler

Synopsis

javap [ options ] classnames

Description

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.

Options


-b

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.


-bootclasspath path

Specifies the search path for the system classes. See javac for information about this rarely used option. Java 1.2 and later.


-c

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.


-classpath path

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.


-extdirs dirs

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.


-J javaopt

Pass the option javaopt to the Java interpreter.


-l

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.


-help

Prints a usage message and exits.


-J javaoption

Passes the specified javaoption directly to the Java interpreter.


-package

Displays package-visible, protected, and public class members, but not private members. This is the default.


-private

Displays all class members, including private members.


-protected

Displays only protected and public members.


-public

Displays only public members of the specified classes.


-s

Outputs the class member declarations using the internal VM type and method signature format instead of the more readable source-code format.


-verbose

Specifies verbose mode. Outputs additional information (in the form of Java comments) about each member of each specified class.

Environment


CLASSPATH

Specifies the default search path for application classes. The -classpath option overrides this environment variable. See java for a discussion of the classpath.

See also

java, javac

    Team LiB
    Previous Section Next Section