UNIX in a Nutshell: System V Edition

UNIX in a Nutshell: System V EditionSearch this book
Previous: Reference: javaldChapter 2
Unix Commands
Next: Reference: jdb
 

javap

/usr/java/bin/javap [options] classfiles

Solaris only. 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.

-c

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

-classpath path

Use path as the search path for class files, overriding $CLASSPATH. path is a colon-separated list of directories.

-h

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

-J option

Pass option directly to java.

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

-verify

Run the Java verifier.

-version

Print the version of javap.


Previous: Reference: javaldUNIX in a Nutshell: System V EditionNext: Reference: jdb
Reference: javaldBook IndexReference: jdb

The UNIX CD Bookshelf NavigationThe UNIX CD BookshelfUNIX Power ToolsUNIX in a NutshellLearning the vi Editorsed & awkLearning the Korn ShellLearning the UNIX Operating System