eclipse安装jd-eclipse插件,查看jar包class文件原创
金蝶云社区-吴锐雄
吴锐雄
8人赞赏了该文章 2,094次浏览 未经作者许可,禁止转载编辑于2021年05月18日 19:18:18

如果文章对您有帮助,请为我点击一个朴实无华的赞^_^


安装和使用jd-eclipse插件的流程:

1.github上下载jd-eclipse的压缩包。

2.在eclipse中install new software,如果对eclipse很熟悉的开发者,对这个步骤应该很熟练了。

3.设置class,class without source的打开工具为jd。


未安装jd-eclipse之前无法查看class文件,导致debug调试也有异常:

The Jar of this class file belongs to container 'Project and External Dependencies' which does not allow modifications to source attachments on its entries.

未安装反编译工具时.png


详细步骤

1.下载

jd-eclipse在github的项目链接:

https://github.com/java-decompiler/jd-eclipse

image.png

image.png


2.安装

注意:安装过程可能会因为eclipse版本差异,如果安装的界面、流程不同,请开发者 百度搜索其他安装教程

进入Help,Install  New  Software

20210423090143499.png


点击add

20210423090249771.png

image.png


选择之前下载的jd-eclipse-2.0.0.zip

20210423090403898.png



如下图,在name处填写一个名字,然后点击ok

20210423090419954.png



之后就是常规的安装步骤,开发者同意安装协议,一直next往下走即可,安装finish之后,重启eclipse

image.png


3.配置jd插件

进入window,preferences

20210423091013552.png

进入general,editors,file associations20210423091101127.png

选择安装好的插件:jd class file viewer

20210423091123375.png

选择jd class file viewer为default

20210423091217919.png


class without source也操作一遍

20210423091328719.png

20210423091413942.png

20210423091523783.png



4.查看效果,查看jar包里面的class文件

20210423091710383.png









赞 8