eclipse反编译class文件,全配置

来源:互联网 发布:约翰克里斯多夫 知乎 编辑:程序博客网 时间:2024/05/29 19:56

昨天从eclipse官网下了eclipse-jee-luna-R-win32版使用,其中关于反编译设置,怎么查资料,配置,都不管用,最后综合了部分人的答案,才搞定,

这里我归纳下,就4步搞定,前3步,几乎大家的博客都这么说,唯有第4步,才在一个很偏的博客上找到

准备文件

net.sf.jadclipse_3.3.0.jar   (百度上说,此包要与eclipse版本相匹配才能使用,此包我从一个于2012年上传的网点上下载的。。坑人)

jad.exe


第一步:

将 net.sf.jadclipse_3.3.0.jar 放到eclipse目录中的 dropins 或 plugins文件夹下都行,重启eclipse

第二步:

从eclipse 菜单栏 Window->Preferences->Java->JadClipse,在Path to decompiler中填写反编译工具jad的全路径名,如:D:\Program Files\xxxxxxxx\jad.exe

第三步:

从eclipse 菜单栏 Windows -> Perference -> General -> Editors -> File Associations

在File Type 下选择*.class,然后在 Associated Editors下选择JadClipse Class File Viewer,并点击右侧的 default 按钮,设置为默认编辑器

(结束配置,看看能不能反编译成功)

第四步:

从eclipse 菜单栏 Windows -> Perference -> General -> Editors -> File Associations

在File Type 下选择 *.class without source,(若没有选项,就add按钮自己添加 *.class without source 类型),然后在 Associated Editors,选择JadClipse Class File Viewer,并点击右侧的default按钮,将 JadClipse Class File Viewer 设置为  *.class without source 的默认编辑器,没有就add



以上4步 成功解决 eclipse-jee-indigo-SR2-win32 和 eclipse-jee-luna-R-win32 两个版本的反编译


额外 给大家介绍一款国外的绿色反编译软件 Java Decompiler 

不知道上传文件在哪,大家自己搜下相关文件,下载吧


0 0
原创粉丝点击