用 Jadclipse + jad 在 eclipse 环境下自动反编译查看class文件源码

一、安装插件Jadclipse
jadclips插件网站: http://jadclipse.sourceforge.net/
以下的链接中有 jad.exe 与 plugin.jar
jad&jadclipse plugin
二、安装:
将jadclipse_3.3.0.jar复制到%ECLIPSE_HOME%\plugins目录下。
三、设置参数:
启动eclipse,打开:Window->Preferences->Java->JadClipse.
1、Path to decompiler,设置反编译工具jad的全路径名,即如上包中的 jad.exe 的路径。
2、Directory for temporary files,这里设置临时文件路径。
四、安装完成后,eclipse自动将JadClipse Class File Viewer设置成class文件的缺省打开方式。如果没有默认,可以在Eclipse的Windows——> Perference——>General->Editors->File Associations中修改“*.class”默认关联的编辑器为“JadClipse Class File Viewer”。设置完成后,双击*.class文件,eclipse将自动反编译。
注: 对于存在源代码的类,它不会强行反编译,也就是说它还是会用eclipse自带的Class File Viewer查看class文件。

reeoo.com - web design inspiration

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注