Eclipse中安装反编译
在eclipse中安装反编译需要jad + jadeclipse
一.下载 jadeclipse:http://sourceforge.net/projects/jadclipse/files/
例如我是下载的net.sf.jadclipse_3.3.0.jar,下载好后,直接拷贝到eclipse的安装路劲的plugin文件夹下,然后重启eclipse
二.下载jad.exe http://www.varaneckas.com/jad/
下载好后放到磁盘的任意位置,例如我是放在D盘 D:\jad\jad.exe
三.配置jad.exe
在eclispe的Window->Preferences->Java->JadClipse,在Path to decompiler中填写反编译工具jad的全路径名,即:D:\jad\jad.exe。
四.编译设置
最后在eclipse中的Windows -> Perference -> General -> Editors -> File Associations选项下,在File Type 下选择*.class,然后在 Associated Editors下选择JadClipse Class File Viewer,并点击右侧的 default 按钮,设置为默认编辑器,然后重启eclipse。
如果这样设置后,在点击某些 .class文件还是不能反编译,还需把File Type 下选择*.class without source 。然后按照上面*.class那样设置,重启eclopse即可。