[kaffe] Re: Decoding compiled class files

Andy Georges andy.georges at elis.ugent.be
Tue May 13 08:20:05 PDT 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

> I want something that decodes and prints out the entire contents of
> the .class file structure, so that I can see the variables, constants
> pool, initialisation, operations performed by bytecode, etc, etc.
> I'm trying to identify and then fix the difference of a single byte
> between two very simple files.

I have attached a small utility which may just do what you want. Sun's 
javap -c is also quite nice.

You will need BCEL tho'. 

http://jakarta.apache.org/bcel/

- -- 
- --
==========================================================================
Parallel Information Systems Group - Dept. ELIS - Ghent University
St. Pietersnieuwstraat 41, 9000 Ghent, Belgium
Phone: +32-9-264.33.67,   Fax: +32-9-264.35.94
E-mail: andy.georges at elis.rug.ac.be 
==========================================================================
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE+wQRkyhGN8W62M+IRArArAJ9Pl453NSP7Jki1WZdDaOoZ2pXQVwCfVNl+
whc3O90J3Bdsvbzntp1+pyQ=
=2Vjo
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ShowClass.java
Type: text/x-java
Size: 2633 bytes
Desc: not available
Url : http://kaffe.org/pipermail/kaffe/attachments/20030513/619b4b6e/attachment-0003.java 


More information about the kaffe mailing list