Eclipse 中 jad 反编译插件配置

jadeclipse的主页:
http://jadclipse.sourceforge.net/

下载jad.exe:
http://www.varaneckas.com/jad/

下载jadeclips(enet.sf.jadclipse_3.3.0.jar):
http://sourceforge.net/projects/jadclipse/files/

下载完成后,把jad.exe放入Jdk安装目录的bin目录下:jdk1.6.0_27\bin\jad.exe
然后把enet.sf.jadclipse_3.3.0.jar放入:eclipse主目录下的 plugin文件夹下,重启 eclipse。

Eclipse做设置如下:
Windows -> Perference -> General -> Editors -> File Associations ,

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

注意:

      1、这样设置后,你双击某些 .class 文件仍不能反编译,这是因为这些class文件没有附加的源码,要想解析所有 class 文件,还需做如下设置:
      在File Type 下选择 *.class without source,然后在 Associated Editors下单击add,添加JadClipse Class File Viewer,然后选择JadClipse Class File Viewer,并点击右侧的default按钮,将 JadClipse Class File Viewer 设置为  *.class without source 的默认编辑器。

      2、如果编译出来的文件出现Cannot run program "%JAVA_HOME%/bin/jad.exe,请将path to decompiler改成绝对路径;如果出现et.sf.jadclipse.JadclipseBufferManager.createBuffer(Lorg/eclipse/jdt/core/IOpenable;)Lorg/eclipse/jdt/core/IBuffer,说明jad.exe的版本号与eclipse平台版本号不对,请下载适合您的平台的版本。

猜你喜欢

转载自it-eye-lee.iteye.com/blog/2105788