`
god_sky
  • 浏览: 139808 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

eclipse 反编译工具下载

    博客分类:
  • java
阅读更多

JadClipse Eclipse Plugin for Eclipse

一、在该页中找到适合自己操作系统平台的jad下载。下载后解压,然后将解压后的jad.exe文件复制到%JAVA_HOME%\bin目录下面(可以将jad.exe放到任意位置,只要记住其存放路径就好,下面要用到)。

二、安装:

Eclipse中的插件安装:
1、直接将jadclipse_x.x.x.jar(x.x.x.代表版本号)复制到%ECLIPSE_HOME%\plugins目录下。

三、使用:
启动eclipse,点击反编译的类文件,此时会激活jadclipse插件,在eclipse菜单中会多出一个jadclipse菜单。

一般地它会自动反编译相应的class文件,如果没有自动反编译,请点击jadclipse->Decompile


常见问题及解决:

(一)启动eclipse,打开Window->Preferences->Java->JadClipse,如果没有找到JadClipse,即JadClipse插件没有激活。

(1)检查插件安装的版本是否与你安装的eclipse版本对应

(2)使用 –clean参数来启动eclipse
(二)在使用JadClipse插件反编译class文件时出现如下类似错误:
/*jadclipse*/
/*
DECOMPILATION REPORT
Decompiled from: E:\Java\jre1.5.0_12\lib\ext\j3dutils.jar
Total time: 63 ms
Jad reported messages/errors:
Exit status: 0
Caught exceptions:
java.io.IOException: CreateProcess: E:\Java\jdk1.5.0_12 -p -t4 -lradix10-radix10 KeyNavigator.class error=5
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(Unknown Source)
at java.lang.ProcessImpl.start(Unknown Source)
at java.lang.ProcessBuilder.start(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
………………

请确保你的Jad路径在eclipse中正确制定。 

还有一点:确保你的Jad是当前系统类型的(window xp: jad.win.zip)
启动eclipse,打开:Window->Preferences->Java->JadClipse.
1、Path to decompiler,这里设置反编译工具jad的全路径名,比如:%JAVA_HOME%\bin\jad.exe.
2、Directory for temporary files,这里设置临时文件路径。

(三)安装完成后,eclipse没有自动将JadClipse ClassFile Viewer设置成class文件的缺省打开方式。

如 果没有默认,可以在Eclipse的Windows—>Perference—>General->Editors->File Associations中修改“*.class”默认关联的编辑器为“JadClipse Class FileViewer”。设置完成后,双击*.class文件,eclipse将自动反编译

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics