Saturday, August 30, 2008

Java's way of decompiling a class file

Hi Friends,

I finsished up with my project work early today. So, i thought of writing to this blog. I found an inbuilt way of decompiling the java class file that contains the binary data. Yes, jdk provides an inbuilt command that is javap.

Using javap you can decompile the java file. Folks, many of us might be using 3rd party tools like cavaj to decompile the class file, but java has its own way of doing this. Below is the example on how to do this.

c:\> javap Ujjwal.class

Cheers!

Ujjwal Soni

No comments: