您的位置:首页 > 编程语言 > Java开发

Eclipse Myeclipse 安装反编译工具jad

2010-05-28 17:10 489 查看

 

方法一:

1.下载jadclipse

    http://jadclipse.sourceforge.net/wiki/index.php/Main_Page

2.下载jad

    http://www.kpdus.com/jad.html

3.Installation Jadclipse

Put the JadClipse JAR file into the plugins folder of your Eclipse installation.

Restart Eclipse (eclipse -clean).

Get Jad.

Put the Jad executable into a directory that is in the execution path of your operating system. Alternatively, you can configure the path to the Jad executable under Window > Preferences... > Java > JadClipse > Path to Decompiler. (Set the full path, e.g. C:/Program Files/Jad/jad.exe)

Go to Window > Preferences... > General > Editors > File Associations and make sure that the JadClipse Class File Viewer has the default file association for *.class files.

如果在myclipse中无法找到jadclipse,那就需要重新加载eclipse的插件.

加载方法:

删除%myeclipse%/eclipse/configuration/org.eclipse.update/platform.xml

然后重新启动myeclipse,ok.

方法二:

打开MyEclipse =>help => Software Updates => Find and Install... => Search for new features to install,单击"New Remote Site..." 在URL栏输入 http://jadclipse.sf.net/update   然后下一步,就可以看到“jode decompiler plugin *.*”了,选上安装就可以了,由于Jode Decompiler是纯Java编写的所以也不需要其他的什么组件来支持了,安装好了可以看到Window => Preferences... => Java => Jode Decompiler选项卡。安装好了再设置一下文件关联就可以了,Window => Preferences... => General => Editors => File Associations找到"*.class"在"Associated editors"里面可以看到"Jode class file viewer"选中它再单击Default按钮就OK了.

现在就可以使用Jode查看包括Jar包内.class文件的源代码了。

 

注意:用方法1安装是,要选择一个适合MyEclipse版本的jar包,我使用的是MyEclipse5.5.1,用net.sf.jadclipse_3.3.0.jar时出错,无法反编译成功,换成net.sf.jadclipse_3.2.4.jar包时能正常的反编译.class文件

 
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息