eclipse添加jar反编译插件

来源:互联网 发布:未来计价软件下载 编辑:程序博客网 时间:2024/06/06 07:32
在 Eclipse Mars 版本想添加 jar 反编译插件,网上搜了下,有两种方法:
1. 安装 JodeEclipse 插件,方法是在 Eclipse Help菜单点击Install New Software,然后在弹出创建中点击Add按钮添加源:
   Name: JodeEclipse
   Location: http://www.technoetic.com/eclipse/update
   过一会儿 Eclipse 会检索到这个地址内容,勾选 Features,下方显示一个 Jode decompiler plugin,然后点击 Next,当文件下载完闭后,
   在 Eclipse Preferences菜单中找到 Editors->File Associations 子菜单, 选择 *.class without source,然后在下方的 Associated Editors窗口右侧点击Add,
   在弹出的窗口里输入 jode, 然后选中 Jode decompile plugin,然后点击 default 按钮设为默认。

   第一种方法没成功,因为要连接google网站,并且下载后安装有错误;
2. 安装 JadClipse 插件:
   (1). 将net.sf.jadclipse_3.3.0.jar文件复制到eclipse目录的plugins文件夹下;下载jar地址:http://sourceforge.net/projects/jadclipse/
   (2). 重启 eclipse,在 Window->Preferences 打开设置界面,在 java 下会有 JadClipse 子菜单;
   点击设置 JadClipse 的 Path to decompiler 路径为 jad.exe 所在路径; 下载jad.exe地址:http://www.varaneckas.com/jad
   勾选最下面的Use Eclipse code formatter;
   (3). 在 Genera 菜单下找到 Editors->File Associations 子菜单;
   选中 File Types 里的 *.class without source,然后在下方的 Associated Editors窗口右侧点击Add,
   在弹出的窗口里输入 jad, 然后选中 JadClipse Class File Viewer,然后点击 default 按钮设为默认。

好了,现在可以试试了。
  
参考:

http://blog.csdn.net/a15937712253/article/details/25844869
http://jingyan.baidu.com/article/1709ad80b6fcf34634c4f025.html
0 0
原创粉丝点击