本文来源:http://blog.csdn.NET/zljjava/article/details/7545270(这篇博客也是转载的,向最原始的作者致敬)
1.下载JAD
jad官方地址的官方下载地址是:
http://www.softpedia.com/get/Programming/Debuggers-Decompilers-Dissasemblers/JAD.shtml#download
2.下载JADClipse插件
官方链接:
文件名为:net.sf.jadclipse_3.3.0.jar。同样我讲自己下载好的文件放在百度云上了,链接:http://pan.baidu.com/s/1pJ1Bev5。
3.解压文件、
将第一步下载好的jadnt158.zip这个压缩文件解压缩,jie压缩之后只有一个文件:jad.exe,将这个jad.exe保存在某个位置,
个人推荐保存在跟eclipse.exe同样的目录里(我放在了:"D:eclipseadt-bundle-windows-x86_64-20131030eclipse"这个目录下)。
然后将第二步下载的net.sf.jadclipse_3.3.0.jar解压缩,解压缩之后产生一个文件夹:net.sf.jadclipse_3.3.0。
将net.sf.jadclipse_3.3.0复制到eclipse的插件目录(plugins),我的目录是“D:eclipseadt-bundle-windows-x86_64-20131030eclipseplugins”。
4.重启eclipse、
这时在eclipse中打开Window->Preferences->Java,会看到java下多出了JadClipse,如图:
在path to decompiler右方输入你第三步保存的jad.exe的路径(这里我之前放在eclipse目录下:“D:eclipseadt-bundle-windows-x86_64-20131030eclipse”)。
5.这是最后一步了、
打开Window->Preferences,搜file associations,应该会搜到它,然后点击一下,这时候出来的窗口如图:
这里我们点击*.class wihout source之后,下面Associated editors下面的框里刚开始是没有jadClipse Class File Viewer这一项的,需要在右面的Add按纽中添加,并将其设为default(设置方法:先选中然后点击右边的Default按纽即可),添加成功后会出现如图片中所示。这个时候就可以直接在eclipse中查看引用jar包的源码了。
上面的图片是我添加成功之后的截图,因此在你刚开始添加的时候可能不太一样,不过关键是找到jadClipse Class File Viewer这个并添加。