Name

javap

Synopsis

    javap [options]classfiles

Disassemble Java class files and print the results. By default, javap prints the public fields and methods of the named classes.

Options

-b

Ignored. For backward compatibility with the JDK 1.1 javap.

-bootclasspath path

Use the colon-separated list of directories in path for the boot classes, instead of the boot classes used by the java command itself.

-c

Print out the disassembled byte-codes for each method in the given classes.

-classpath path

Use the colon-separated list of directories in path instead of $CLASSPATH to find class files. It is usually a good idea to have the current directory (“.”) on the search path.

-extdirs dirs

For cross-compilation, use the specified dirs as the extension directories.

-h

Generate code that can be used in a C header file.

-help

Print a usage message.

-J java-option

Pass java-option on to the java program. Useful for changing the execution environment or memory usage. java-option should not contain spaces; use multiple -J options if necessary.

-l

Display line number and local variable information.

-package

Only disassemble package, protected, and public classes and members. This is the default.

-private

Disassemble all classes and members.

-protected

Only disassemble protected and public classes and members.

-public

Only disassemble public classes and members.

-s

Display the internal type signatures.

-verbose

For each method, print the stack size, number of arguments, and number of local variables. ...

Get Unix in a Nutshell, 4th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.