In our JAVA development if there is no source code attached for a class like below,

/wp-content/uploads/2014/02/clipboard1_384503.png

We have no chance to view its source code.

/wp-content/uploads/2014/02/clipboard2_384505.png

However you can use an open source tool, JAD, to decompile the class file so that you can view its source code.

There is also an available plugin for eclipse which you can download from this link.

1. Download the proper Jad Eclipse plugin according to the version of your Eclipse:

/wp-content/uploads/2014/02/clipboard6_384509.png

2. Download the proper JAD.exe file according to your OS type:

/wp-content/uploads/2014/02/clipboard7_384510.png

/wp-content/uploads/2014/02/clipboard8_384511.png

3. put the JAD plugin to your Eclipse plugin folder:

/wp-content/uploads/2014/02/clipboard9_384512.png

4. Put the JAD.exe to the bin folder of your JRE installation:

/wp-content/uploads/2014/02/clipboard10_384514.png

5. Restart your Eclipse, in menu Windows->Preference->Java, you can find there is a new option JadClipse, maintain the path of your JAD.exe to “Path to decompiler”:

/wp-content/uploads/2014/02/clipboard11_384515.png

6. Now click F3 on the class which you would like to view its source code, the JAD will decompile it for you:

/wp-content/uploads/2014/02/clipboard12_384516.png

To report this post you need to login first.

Be the first to leave a comment

You must be Logged on to comment or reply to a post.

Leave a Reply