Eclipse中安装Java反编译插件JD-Eclipse

【0】JD-Eclipse简介:

JD-Eclipse is a plug-in for the Eclipse platform. It allows you to display all the Java sources during your debugging process, even if you do not have them all.

JD-Eclipse is free for non-commercial use. This means that JD-Eclipse shall not be included or embedded into commercial software products. Nevertheless, this project may be freely used for personal needs in a commercial or non-commercial environments.

【1】支持的平台:

  • Windows 32/64-bit
  • Linux 32/64-bit
  • Mac OSX 32/64-bit on x86 hardware
【2】安装步骤:

Windows需要Microsoft Visual C++ 2008 SP1 Redistributable Package (x86)

Eclipse 3.6以上

Help->install new software->参见下图输入网址:http://java.decompiler.free.fr/jd-eclipse/update



接着一直Next,Accept ,OK 就可以了,若是发生依赖错误,请安装Equinox/p2 plug-in,这个在已经存在的可使用网址列表就有,选择所有可使用的网址,Pending之后展开找到点击安装即可,祝你好运


更多信息请参考官方网址:http://java.decompiler.free.fr/?q=jdeclipse



下载Jad反编译工具: [url]http://www.kpdus.com/jad.html#download[/url],在该页找到适合自己操作系统平台的jad下载。下载后解压,然后将解压后的jad.exe文件复制到一个固定的目录下面,如:D:\worktools\eclipse\myplugins\jadclipse下面(这是我放置的地方,可以将jad.exe放到任意位置,只要记住其存放路径就好,下面要用到)。 二、安装: 方法1、直接将jadclipse_x.x.x.jar(x.x.x.代表版本号)复制到%ECLIPSE_HOME%\plugins目录下。 方法2、使用link方式安装,建立D:\worktools\eclipse\myplugins\jadclipse\eclipse\plugins的目录结构,将net.sf.jadclipse_3.3.0.jar放到plugins目录下面(注:其D:\worktools\eclipse\myplugins\为你自己定义的一个专门放置插件的目录)。再在%ECLIPSE_HOME%\links目录下面建立一个jadclipse.link文件(该文件名随便取)。文件里面内容为:path=D:\\worktools\\eclipse\\myplugins\\jadclipse。 三、使用: 启动eclipse,点击反编译的类文件,此时会激活jadclipse插件,在eclipse菜单会多出一个jadclipse菜单,如下图所示: jadclipse插件 一般地它会自动反编译相应的class文件,如果没有自动反编译,请点击jadclipse->Decompile 如下图所示: jadclipse插件反编译 常见问题及解决: (一)启动eclipse,打开Window->Preferences->Java->JadClipse,如果没有找到JadClipse,即JadClipse插件没有激活。 (1)检查插件安装的版本是否与你安装eclipse版本对应 (2)使用 –clean参数来启动eclipse (二)在使用JadClipse插件反编译class文件时出现如下类似错误: 请确保你的Jad路径在eclipse正确制定。 启动eclipse,打开:Window->Preferences->Java->JadClipse. 1、Path to decompiler,这里设置反编译工具jad的全路径名,比如:D:\worktools\eclipse\myplugins\jadclipse\jad.exe. 2、Directory for temporary files,这里设置临时文件路径。 至于Window->Preferences->Java->JadClipse目录下的Debug,Directives,Formatting,Misc目录的参数设置,我也没去研究,反正用不着了。 (三)安装完成后,eclipse没有自动将JadClipse Class File Viewer设置成class文件的缺省打开方式。 如果没有默认,可以在Eclipse的Windows—> Perference—>General->Editors->File Associations修改“*.class”默认关联的编辑器为“JadClipse Class File Viewer”。设置完成后,双击*.class文件,eclipse将自动反编译
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值