Install Java Decompiler Plugin In Eclipse IDE

Introduction

As we all now that once Java source file is compiled it generates the class file. This class file is not in human readable format. So the first question is why you need to read/view class files as it is executed by JVM. The answer is while we are developing applications we often need to include third party jar files. These jar files comprise of compiled java class(class files).

For example:  Let us download any jar file and open it using 7-Zip. You can see class files as shown in the below image:

Compiled Class Files

Further at the time of development we often need to see the implementation of the methods of the class file. So to convert these class files to java source files or human readable format you have to use Java Decompiler.

JadClipse

To decompile Java class files in Eclipse IDE, you can use JadClipse plugin. JadClipse is a plug-in that seamlessly integrates Jad with Eclipse. Normally, when opening a class file the Class File Viewer will show a brief API outline of the class. If you install this plug-in, however, the Class File Viewer will be replaced with the JadClipse Class File Viewer that shows the decompiled source of the class. This task is accomplished by decompiling the corresponding class file in the background using Jad.

Steps to install JadClipse in Eclipse 

You can find below steps to install JadClipse plugin in Eclipse. The version of Eclipse used for this demo is Eclipse Kepler.

  1. Open Eclipse IDE.
  2. Go to Help -> Eclipse Marketplace.
  3. Search  keyword JadClipse. You can see following search result on the screen.

    Eclipse Marketplace JadClipse

  4. Click on install button.
  5. Click on confirm button.
  6. Accept the terms and condition and click on Finish button.
  7. Now open any class file to check whether the plugin has installed successfully or not using Ctrl+Shift+T shortcut key in Eclipse IDE.
  8. A popup opens in Eclipse IDE. Type String and open java.lang.String class.
  9. You can see that the class file i.e java.lang.String is decompiled and you can see the source code of String class.

In this article, you learned how to install JadClipse plugin in Eclipse IDE to decompile java class files.

Article tagged as
Author
Author: Amit Gupta
Published On: 13/10/2015
Last revised On: 30/09/2018
View all articles by Amit Gupta

Share this post

Comments

Comments
comments powered by Disqus

Navigation

Social Media