NAME
javap - Java class file disassembler
SYNOPSIS
jjaavvaapp [ options ] class ...DESCRIPTION
The jjaavvaapp command disassembles a Java class file. The options deter-
mine the output. If no options are used, jjaavvaapp prints out the ppaacckkaaggee, pprrootteecctteedd, and ppuubblliicc fields and methods of the classes passed to it. The jjaavvaapp command displays its output to ssttddoouutt. For example, compile the following class declaration: iimmppoorrtt jjaavvaa..aawwtt..**;; iimmppoorrtt jjaavvaa..aapppplleett..**;; ppuubblliicc ccllaassss DDooccFFooootteerr eexxtteennddss AApppplleett {{ SSttrriinngg ddaattee;; SSttrriinngg eemmaaiill;; ppuubblliicc vvooiidd iinniitt(()) {{ rreessiizzee((550000,,110000));; ddaattee == ggeettPPaarraammeetteerr((""LLAASSTTUUPPDDAATTEEDD""));; eemmaaiill == ggeettPPaarraammeetteerr((""EEMMAAIILL""));; }} ppuubblliicc vvooiidd ppaaiinntt((GGrraapphhiiccss gg)) {{ gg..ddrraawwSSttrriinngg((ddaattee ++ "" bbyy "",,110000,, 1155));; gg..ddrraawwSSttrriinngg((eemmaaiill,,229900,,1155));; }} }} The output from jjaavvaapp DDooccFFooootteerr yields: CCoommppiilleedd ffrroomm DDooccFFooootteerr..jjaavvaa ppuubblliicc ccllaassss DDooccFFooootteerr eexxtteennddss jjaavvaa..aapppplleett..AApppplleett {{ jjaavvaa..llaanngg..SSttrriinngg ddaattee;; jjaavvaa..llaanngg..SSttrriinngg eemmaaiill;; ppuubblliicc vvooiidd iinniitt(());; ppuubblliicc vvooiidd ppaaiinntt((jjaavvaa..aawwtt..GGrraapphhiiccss));; ppuubblliicc DDooccFFooootteerr(());; }} OOPPTTIIOONNSS The following options are supported:-bb Ensures backward compatibility with jjaavvaapp in JDK 1.1.
-bboooottccllaassssppaatthh path
Specifies path from which to load bootstrap classes. Bydefault, the bootstrap classes are the classes imple-
menting the core Java platform located in jjrree//lliibb//rrtt..jjaarr and jjrree//lliibb//cchhaarrsseettss..jjaarr.-cc Prints out disassembled code, that is, the instructions
that comprise the Java bytecodes, for each of the meth-
ods in the class. These are documented in the Java Vir-
tual Machine Specification.-ccllaassssppaatthh path
Specifies the path jjaavvaapp uses to look up classes. Over-
rides the default or the CCLLAASSSSPPAATTHH environment variable if it is set. Directories are separated by colons (::). Thus the general format for path is: ..::<> For example: ..:://hhoommee//aavvhh//ccllaasssseess:://uussrr//llooccaall//jjaavvaa//ccllaasssseess -eexxttddiirrss dirs Overrides location at which installed extensions are
searched. The default location for extensions is jjrree//lliibb//eexxtt.-hheellpp Prints out help message for jjaavvaapp.
-JJflag Passes flag directly to runtime system.
jjaavvaapp -JJ-vveerrssiioonn
jjaavvaapp -JJJJ-DDjjaavvaa..sseeccuurriittyy..mmaannaaggeerr
-DDjjaavvaa..sseeccuurriittyy..ppoolliiccyy==MMyyPPoolliiccyy MMyyCCllaassssNNaammee
-ll Displays line and local variable tables.
-ppaacckkaaggee Shows only package, protected, and public classes and
members. This is the default.-pprriivvaattee Shows all classes and members.
-pprrootteecctteedd Shows only protected and public classes and members.
-ppuubblliicc Shows only public classes and members.
-ss Displays internal type signatures.
-vveerrbboossee Prints stack size, number of locals, and args for meth-
ods. ENVIRONMENT VARIABLESCCLLAASSSSPPAATTHH Used to provide the system with a path to user-defined
classes. Directories are separated by colons. For exam-
ple: ..:://hhoommee//aavvhh//ccllaasssseess:://uussrr//llooccaall//jjaavvaa//ccllaasssseessSEE ALSO
jjaavvaa(1), jjaavvaacc(1), jjaavvaaddoocc(1), jjaavvaahh(1), jjddbb(1)13 June 2000 javap(1)