Java Decompiler Plugin For Eclipse
After integrated Java Decompiler (Jad) into Eclipse IDE, when we click on any Java class files or F3 trace into the Java’s class, it will decompile automatically, quite convenient and useful.
Integrated Java Decompiler (Jad) with Eclipse
1. Download Jad
Download the Jad, and extract it.
Jad Official website
1. This official Jad website seem not working any more, please check on the mirror download links
http://www.kpdus.com/jad.html
Jad mirror download
1. http://www.softpedia.com/get/Programming/Debuggers-Decompilers-Dissasemblers/JAD.shtml
2. http://www.varaneckas.com/jad
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.
Example to decompile JSObject class by Jad
/*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 {
- Java Core Technology - Java RegEx, Java XML, Java I/O, Java Misc
- J2EE Frameworks - Hibernate, Spring 2.5, Spring MVC, Struts 1.x, Struts 2.x
- Build Tools - Maven, Archiva
- Unit Test - jUnit, TestNG
- Client Scripts - jQuery
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.
[...] – 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 [...]