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,
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 :