Eclipse中快速查看jar包中的class源码
在线安装反编译插件
1、在eclipse的help—》Install New Software…中添加新软件开发,添加它的源:
Name随意取名,Location地址:http://jd.benow.ca/jd-eclipse/update,一直点next,直到安装完成重启eclipse。
2.在Eclipse window-perferences-General-Editors-File Associations
选择JD Class File Viewer编辑器并点击Default按钮设置为默认的编辑器,至此已经设置完毕,ctrl+左键点击源码中的类即可查看源码。
离线安装反编译插件
1、https://androidhost.org/MmcoI为插件下载地址
2、下载jd-eclipse-site-1.0.0-RC2.zip,解压,将plugins文件下的jd.ide.eclipse.plugin_1.0.0.jar和features文件夹下的jd.ide.eclipse.feature_1.0.0.jar复制到eclipse安装目录下的plugins里
3、在eclipse里安装,选择help下的安装插件install new soft 或者叫update ……版本不同不一样,自己看哈 然后 点add site ,在弹出来的框的location选择刚下载的包的路径 然后下一步,安装即可
4、安装好后,修改一个设置,选window-preferences 在输入框输入file Associations 在右边选*.class 下面将JD Class File Viewer设置为默认的即可(点右边的default)