一、下载Jadclipse插件
[地址下载]
二、下载Jad反编译工具
[地址下载]
三、将Jadclipse放入Eclipse插件目录下
一般下载的最新版本为net.sf.jadclipse_3.3.0.jar,然后将该jar放到eclipse\plugins目录下。
#如果Eclipse > Window > Preferences 找不到"Java > JadClipse"这选项,把net.sf.jadclipse_3.3.0.jar放到eclipse\dropins目录下。
四、将Jad工具放到%JAVA_HOME%/bin目录下
Jad压缩包解压,将jad.exe放入%JAVA_HOME%/bin目录下
五、设置Eclipse
Window > Preferences > Java > JadClipse 设置:
>Path to decompiler: [jad.ext的路径]
>Directory for temporary files: [指定一个反编译后文件放在的目录]
>Reuse code buffer [勾选]
>Use Eclipse code formatter [勾选]
六、设置class文件默认打开方式
Window > Preferences > General > Editors > File Associations 设置:
File Types:
*.class [选择]
*.class without source [选择]
将两项设置为:JadClipse Class File Viewer(default)