http://java.decompiler.free.fr/jd-eclipse/bugs
到该网站下载完eclipse反编译插件后,安装。
JD-Eclipse
JD-Eclipse is a plug-in for the Eclipse platform. It allows you to display all the Java sources during your debugging process, even if you do not have them all.
JD-Eclipse is free for non-commercial use. This means that JD-Eclipse shall not be included or embedded into commercial software products. Nevertheless, this project may be freely used for personal needs in a commercial or non-commercial environments.
Screenshots
Supported Platforms
- Windows 32/64-bit
- Linux 32/64-bit
- Mac OSX 32/64-bit on x86 hardware
Installation
Windows Platform Prerequisites
The native library, included into JD-Eclipse for Windows, has been built with Microsoft Visual C++ 2008 Express Edition. Some runtime components of Visual C++ Libraries are required to run the decompiler. You can download and install them from the Microsoft Web site :
Microsoft Visual C++ 2008 SP1 Redistributable Package (x86)
Microsoft Visual C++ 2008 SP1 Redistributable Package (x64)
Instructions
- From the Help menu in Eclipse, select Install New Software... to open an Install dialog window (shown below).
- Add a new repository to add JD-Eclipse plug-in:
- Click on the Add... button to open the New Repository dialog window.
- Type JD-Eclipse Update Site in the site Name text box.
- In the URL text box, type the URL for the JD-Eclipse update site: http://jd.benow.ca/jd-eclipse/update and click OK.
真正下载地址http://jd.benow.ca/jd-eclipse/downloads/jdeclipse_update_site.zip。。
下载完后安装后,如果class文件还是不能反编译出来。可能需要以下设置
1 安装好后,修改一个设置,选window-preferences 在输入框输入file Associations 在右边选*.class 下面将class file editor设置为默认的即可(点右边的default)
2 还有一种,修改*.class without source,然后添加class file editor,其实网上很多都是说了第一种,但是很多人还是没有反编译出来。设置第二种之后,基本上应该可以的了。搞了这个反编译搞了好久,怎么都反编译不出来,原来是还要设置*.class without source,网上都不说,坑死人了