javap-The Java Disassembler

   

javap ”The Java Disassembler

The Java disassembler is used to disassemble Java bytecode that has already been compiled. After disassembling the code, information about the member variables and methods is printed. The syntax for the Java disassembler is

 javap <options> <classes> 

Multiple classes can be disassembled. Use a single space to separate each class. The options available for the disassembler are shown in Table B.3.

Table B.3. javap Options
Option Description
-c Disassembles the source file and displays the bytecodes produced by the compiler.
-l Prints the local variable tables.
-public Shows only public classes and members .
-protected Shows protected and public classes and members.
-package Prints out private, protected, and public member variables and methods. (By default, javap uses this option.)
-private Shows all classes and members.
-s Prints internal type signatures.
-verbose Prints stacks, local variables, and member methods as the javap works.
-classpath <pathlist> Looks for class files in the specified directories. For multiple directories, a colon (UNIX) or semicolon (DOS) is used to separate each directory. For example, on a DOS machine the CLASSPATH might look like set CLASSPATH=.;C:\ users\ dac\ classes;C:\ tools\ java\ classes .
   


Special Edition Using Java 2 Standard Edition
Special Edition Using Java 2, Standard Edition (Special Edition Using...)
ISBN: 0789724685
EAN: 2147483647
Year: 1999
Pages: 353

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net