一、MyEclipse
第一步:
或者
http://nchc.dl.sourceforge.net/sourceforge/jadclipse/net.sf.jadclipse_3.3.0.jar
第二步:
注意事项:
========================================
二、Eclipse
1、下载eclipse插件:jadclipse_版本号.jar
http://jadclipse.sourceforge.net/download.html
或者
http://nchc.dl.sourceforge.net/sourceforge/jadclipse/net.sf.jadclipse_3.3.0.jar
2、
3、将jad反编译工具jad.exe放到jdk安装路径的bin目录下面,jadclipse_版本号.jar放到eclipse的安装目录下的plugins目录下。
4、启动eclipse,打开:Window->Preferences->Java->JadClipse.
Path to decompiler,这里设置反编译工具jad的全路径名,就是第三部jad.exe的路径。
5、 安装完成后,eclipse自动将JadClipse Class File Viewer设置成class文件的缺省打开方式。如果没有默认,可以在Eclipse的Windows——> Perference——>General->Editors->File Associations中修改“*.class”默认关联的编辑器为“JadClipse Class File Viewer”。设置完成后,双击*.class文件,eclipse将自动反编译。
注意:jadclipse_版本号.jar的版本与eclipse的platform版本号相关,如果不匹配则会出现这样的错误:
An error has occurred when activating this view
Expecting non-static method jadclipse.JadclipseBufferManager.createBuffer(Lorg/eclipse/jdt/core/IOpenable;)Lorg/eclipse/jdt/core/IBuffer;
原文引自:http://duanjiangong.iteye.com/blog/1186698