Jad is a Java anti-compilation tool, and Eclipse's plug-in jadclipse, which combine to easily view the source code of a class file in Eclipse.
Here's a look at the configuration:
- Download Jadclipse,http://jadclipse.sourceforge.net/wiki/index.php/main_page#download, download the latest Net.sf.jadclipse_3.3.0.jar
- Download Jad,http://www.varaneckas.com/jad download win version
- Copy the downloaded Jadeclipse,net.sf.jadclipse_3.3.0.jar to the plugins directory under Eclipse.
- Copy the Jad.exe to the bin file under the JDK installation directory (easy to put together with common commands such as Java,javac, you can use the Jad command directly from the console).
- Then, restart Eclipse, find Eclipse->window->preferences->java, and you will find that there will be more than the original one Jadclipse option, click, will appear as follows:
Enter the location where you just placed jad.exe in path to Decompiler, or specify a directory for the temporary files. Of course, there are some sub-options under Jadclipse,
such as Debug,directives, according to the default configuration can be.
6. After the basic configuration is complete, we can check the default open mode of class file, Eclipse->window->preferences->general->editors->file Associations, we can see:
We can see that the class file is opened in two ways, Jadclipse and Eclipse comes with the class files Viewer, and Jadclipse is the default.
7. Complete configuration, select the class you want to view, press F3 to view the source code.
The deserialized source file has one line at the top:
/*jadclipse*///decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov. The description is decompile by Jad.
Note: After this setting, you double-click some class files still cannot decompile, this is because these class files have no additional source code, in order to resolve all class files, but also to do the following settings:
Eclipse->window->preferences->general->editors->file Associations
Under File Type, select *.class without source, then click Add under Associated editors, add the Jadclipse class file Viewer, and select the Jadclipse class file Viewer and click the Default button on the right to set the Jadclipse Class File Viewer to *.class without source.
Ps:
MyEclipse Install the Jadclipse plugin and copy the Net.sf.jadclipse_3.3.0.jar directly to a similar
D:\dev\MyEclipse\MyEclipse 10\dropins in the directory.
Documents and JAD.exe Baidu Network disk: Http://pan.baidu.com/s/1o8A5xCA
Java Anti-compilation tool jad and plugin jadclipse configuration tutorial