1.下载jadclipse
http://jadclipse.sourceforge.net/wiki/index.php/Main_Page
2.下载jad
http://www.varaneckas.com/jad/
3.安装jadclipse
Put the JadClipse JAR file into the plugins folder of your Eclipse installation.
- Restart Eclipse (eclipse -clean).
- Get Jad.
- Put the Jad executable into a directory that is in the execution path of your operating system. Alternatively, you can configure the path to the Jad executable under Window > Preferences... > Java > JadClipse > Path to Decompiler. (Set the full path, e.g. C:\Program Files\Jad\jad.exe)
- 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.
注:
1、Path to decompiler,这里设置反编译工具jad的全路径名,比如C:\Java\jre1.5.0_07\bin\jad.exe.
2、Directory for temporary files,这里设置临时文件路径。我个人偏好使用link方式安装jadclipse。对于存在源代码的类,它不会强行反编译,也就是说它还是会用eclipse自带的Class File Viewer查看class文件。
4.重启eclipse以发现jadclipse插件eclipse -clean