Java Decompiler Plugin For Eclipse IDE
To decompile Java class in Eclipse IDE, you can download “Java Decompiler (Jad) Eclipse plugin“. With this plugin enabled in Eclipse IDE, when you click on any Java classes or F3 trace into the class, the plugin will decompile it automatically.
Integrated Java Decompiler (Jad) with Eclipse
See following steps to integrate Java Decompiler (Jad) with Eclipse IDE.
1. Download Jad
Download the Jad executable file.
Jad Official website
Jad mirror download
2. Download Jad Eclipse plugin
Download the Jad Eclipse plugin named “Jabclipse (net.sf.jadclipse_x.x.x.jar)”
http://sourceforge.net/projects/jadclipse/
3. Copy it to Eclipse plugin folder
Copy the downloaded Jad Eclipse plugin – Jabclipse(jadclipse_x.x.x.jar) to Eclipse plugin folder.
For example,
D:\eclipse\plugins\net.sf.jadclipse_3.3.0.jar
P.S No need to extract it, just copy the whole jar file.
4. Restart Eclipse
Restart Eclipse to make the plugin take effect.
5. Configure Jadclipse in Eclipse
In Eclipse, Click Window –> Preference –> Java –> Jadclipse , Key in Jad’s path in “Path to Decompiler” field

6. Done
In Eclipse, try F3 into any class which does not has the source, Jad will decompile it automatically.
see examples :
/*jadclipse*/// Decompiled by Jad v1.5.8f. Copyright 2001 Pavel Kouznetsov. // Jad home page: http://www.kpdus.com/jad.html // Decompiler options: packimports(3) radix(10) lradix(10) // Source File Name: JSObject.java package netscape.javascript; import java.applet.Applet; import sun.plugin.javascript.JSContext; // Referenced classes of package netscape.javascript: // JSException public abstract class JSObject {
Hi,
I’ve the same problem with Eclipse Indigo SP1 (3.7.1) and jadclipse 3.3.0.
I downloaded the latest jar net.sf.jadclipse_3.3.0.jar and put it in to plugins folder of my Indigo installation, I restarted Eclipse but I was unable to decompile .class files.
The Jad executable is into the PATH variable configured in the operating system (Windows 7 Professional).
In Window –> Preference –> Java –> Jadclipse (described in Step 5) I can’t find the jadclipse configuration.
I solved installing another plugin available here: http://java.decompiler.free.fr/?q=jdeclipse
Massimo
Hello Mkyong,
I am using Eclipse Helios (3.6) and i can’t find JadClipse in preferences->java.
I restarted Eclipse a couple of times after copying the plugin jar.
You have any idea what could be wrong.
That’s weird, did you copied to the correct folder? The Eclipse plugin folder should be like this :
Hello,
yes that’s where I copied the jar file, could you try on Helios, to check it out please?
Its Too usefull
very useful tutorial.
Thanks a lot.
very useful, simplified, accurate and to the point guide.
Thanks a lot.
Hi. I keep getting:
"/*jadclipse*/ //Error!"everytime I try to open a .class file. I did set the correct path to jad.exe and set jadClipse as default *.class viewer.
Is there any error message?
Thanks a lot. Good tutorial.
DECOMPILATION REPORT
Decompiled from: /opt/ATG/ATG10.0.2/DAS/lib/servlet.jar
Total time: 26 ms
Jad reported messages/errors:
Exit status: 0
Caught exceptions:
java.io.IOException: Cannot run program “jad” (in directory “/home/citrisys/.net.sf.jadclipse/1311068558030″): java.io.IOException: error=2, No such file or directory
at java.lang.ProcessBuilder.start(ProcessBuilder.java:475)
Make sure your “jad.exe” in existed in that folder.
Thanks for the useful tip on installing JAD in eclipse.
[...] ??????????, ??? ? Eclipse ???????? ??? ???????, ???????? ? jar-??????. ????? Java Decompiler Plugin For Eclipse IDE. [...]
After downloading JAR at eclipse\plugin folder…I don’t see option (Step:5) of Jadclipse…what could be still missing?
Restarted your Eclipse IDE? and what’s your Eclipse version?
I’m encountering the same problem with:
Eclipse IDE for Java Developers
Version: Indigo Release
Build id: 20110615-0604
Sorry, i don’t understand where you are getting “jad.exe” from. there is no .exe file in the download. also, what do i put in the “path to decompiler” field? can anyone help?
you can download it from here: http://www.softpedia.com/get/Programming/Debuggers-Decompilers-Dissasemblers/JAD.shtml
and in the “path to decompiler” field you put the path to the .exe you have downloaded from the above link
Pena não tenha em pt-br BRASIL
I keep getting this general error:
DECOMPILATION REPORT
Decompiled from: C:\Users\Justin\Desktop\Stuff\test\bin\test.jar
Total time: 36 ms
Jad reported messages/errors:
JavaClassFileReadException: can’t open input file on `test.jar|ab.class’
Exit status: 0
Caught exceptions:
I have JadClipse as the default *.class editor
I have the path extension to jad .exe given to JadClipse
I started eclipse with eclipse -clean
What might be the issue?
Thanks this works well.. Need to make JadClipse viewer defaulted *.class files association..
Also remember to set default class viewer to JadEclipse Class File Viewer :
Go to Window > Preferences… > General > Editors > File Associations and make sure that the JadClipse Class File Viewer has the DEFAULT file association for *.class files. ( – press Default button !!!) ” It really helps
))
Great! Thanks your tip.
Thanks for the information. Working fine
Decompiled from: C:\java\iview_gui\lib\cem\cem_client.jar
Total time: 32 ms
Jad reported messages/errors:
Exit status: 0
Caught exceptions:
java.io.IOException: CreateProcess: C:\Users\purush -p -t4 -lradix10 -radix10 CanonicalName.class error=5
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.(Unknown Source)
at java.lang.ProcessImpl.start(Unknown Source)
at java.lang.ProcessBuilder.start(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at net.sf.jadclipse.JadDecompiler.decompile(JadDecompiler.java:160)
Can some one suggest what could be the issue here. It’s in windows OS
got the solution
downloaded jad.exe and linked the same in eclipse configuration as mentioned in step 5.Thanks
Ramu
Thanks for this.
I had downloaded the plugin, but didn’t know how to make it work.
Cheers!
after downloaded the plugin, you can continue on the step 3, what’s the problem you encountered?
got it!
it is working fine in windows, thanks
This is happening because the path thatyou have specified for jad is not correct.
in eclipse 3.4 can not decomplie class
DECOMPILATION REPORT
Decompiled from: ojdbc14_g.jar
Total time: 16 ms
Jad reported messages/errors:
Exit status: 0
Caught exceptions:
java.io.IOException: Cannot run program “jad” (in directory ” “/home/someone/.net.sf.jadclipse/1242375761497″ “): java.io.IOException: error=2, No such file or directory
at java.lang.ProcessBuilder.start(ProcessBuilder.java:459)
at java.lang.Runtime.exec(Runtime.java:593)
at net.sf.jadclipse.JadDecompiler.decompile(JadDecompiler.java:160)
i suppose your eclipse is running in Linux platform? May to share me how you set the jad in eclipse?
Is this a folder format? .net.sf.jadclipse/1242375761497 so weird.
After you have set the path “5) Set Jadclipse Preference, Window –> Preference –> Java –> Jadclipse
Key in Jad path in Path to Decompiler field” you must restart Eclipse.
I am not able to see the JadClipse in preferences->java
I am using Eclipse 3.1 it will not work for this version?
Eclipse 3.1!? Serious? Why don’t you upgrade to the latest version, the new one is feature rich and much better!
No comment, caused i didn’t test jad plugin with Eclipse 3.1.
[...] – bookmarked by 1 members originally found by mirkocorli on 2008-09-14 Java Decompiler Plugin For Eclipse http://www.mkyong.com/java/java-decompiler-plugin-for-eclipse/ – bookmarked by 1 members [...]