Decompile Java Classes automatically in Eclipse with JadClipse
There always comes that time, when you’re debugging a Java application, when you get to that compiled code inside that open source jar that you added to make your life easier. Whether there’s an actual bug or you’re just trying to understand some behavior or weirdness you’re getting from calling this third party API, sometimes it just helps to see the source. If you’re using Eclipse you’re in luck, things just got easier, well they’ve been easy for awhile, but if you weren’t aware of jad they just got easier. If you download and unzip the most recent version of JAD, Java’s fast decompiler, and add the appropriate Jadclipse plug-in for your version of Eclipse, set a little configuration and your workspace will decompile compiled code automagically. No more ugly class outlines, just raw source code. This is by far one of the essential tools a Java developer should have in their tool kit, just like Firebug for a Web developer. Here are some step by step instructions to get you going, of course I’m assuming you’re already using eclipse and have an existing workspace.
- Download the latest version of JAD that works with your Operating System from http://www.kpdus.com/jad.html#download
- Unzip the JAD executable to a memorable place on your hard drive, I just stuck mine in the bin directory of the JDK
- Head over to http://sourceforge.net/project/showfiles.php?group_id=40205 and download the version of the Jadclipse jar that matches your eclipse version, lots of choices here 3.1, 3.2, and 3.3 are covered.
- Copy the jar file over to your eclipse/plugins directory, this all depends on where you unzipped and installed Eclipse
- If you’re workspace was open during all of this, close it and reopen it, if not open it.
- Click Window -> Preferences
- Expand +Java -> Click on JadClipse
- In the Path to decompiler put in the full path to JAD, or put jad in the path variable for your OS, in my case it was C:\Program Files\Java\jdk1.5.0_05\bin\jad.exe

- Now go looking in Open Type -Ctrl + Shift + T - for a class you know is in a jar or compiled in your workspace and voila it should open decompiled, classes will also decompile during navigation of method calls from the Console, or their calling classes and during debug
Sep 26th, 2007 at 7:01 am
A great post. Thank you webguy
Dec 4th, 2007 at 12:46 pm
Great and clear post man… Thanks !!! Thumbs up !!!
Jan 5th, 2008 at 7:43 am
Decompile Java Classes automatically in Eclipse with JadClipse and JAD - GreatWebGuy
a nice post:
Decompile Java Classes automatically in Eclipse with JadClipse and JAD - GreatWebGuy
…
Apr 21st, 2008 at 5:02 am
Really it’s great awesome man. J
May 17th, 2008 at 5:07 pm
thank you so much…
Jun 25th, 2008 at 11:01 am
I’m using Linux. When I CTRL + Shift + T, and I type the class name, it does not come up. I put the jad executable in a folder in my home directory, and the jad plugin jar in the Eclipse plugins directory.
I configured the JadClipse settings inside Eclipse as you’ve described, but no luck…
Jun 25th, 2008 at 11:31 am
I have not tried it on Linux, not sure what the problem could be, maybe a filtering issue with Ctrl + Shift + T. Can you use F3 to open compiled class to see if the JAD piece is working at least?
Aug 5th, 2008 at 1:13 am
It is really great…. Thanks a lot
Oct 16th, 2008 at 8:02 am
i am working in linux fedora ..also using fedora eclipse..i have done all the procedure…but i couldnt get class file to java file..so please help if anyone have knowledge with fedora eclipse
Oct 22nd, 2008 at 11:05 am
Worked great - thanks!