JadClipse是Jad的Eclipse插件,是一款非常实用而且方便地Java反编译插件,我们只需将下载的插件包复制到eclipse的plugins目录下,然后修改window -> Preferences -> Java -> JadClipse 下的Path to decompiler ,如:C:\pin\jadnt158\jad.exe,最后在Windows -> Perference -> General -> Editors -> File Associations中修改“*.class”默认关联的编辑器为“JadClipse Class File Viewer” 即可。
详细步骤见下所示:
1、下载net.sf.jadclipse_3.3.0.jar(可下载更新版本)及jad.exe。
下载地址:http://sourceforge.net/projects/jadclipse/;也可到本人百度云盘进行下载:https://pan.baidu.com/s/1o77h5W2。注意:如果是mac系统可通过下载jad158g.mac.intel.zip。将下文中的jad.exe换成jad158g.mac.intel.zip文件中的jad即可2、将net.sf.jadclipse_3.3.0.jar文件放入Eclipse的安装目录下的plugins文件夹下。
3、将jad.exe放在任意文件夹下并定义一个空文件夹存储临时文件所用。
4、打开Eclipse,若已经打开了需要重启一下(File-->Restart)。点击Window-->Preferences,搜索JadClipse。
5、点击Winsow-->Preferences,搜索file associations。
如上,可以看到两个与.class有关的,点击.class without source(意思没有资源的时候的class的编辑器),在Associated editors中将JadClipse Class File Viewer设置成默认(Default),若没有JadClipse Class File Viewer则通过右边的Add进行添加即可(添加后并设置成默认)。
至此,打开jar中的.class文件在没有资源的情况下也能查看编译的类了。