Eclipse 安装反编译插件

使用eclipse开发难免要进行查看class文件的操作,通常使用的是jad及jadeclipse插件。

我使用的也是这种情况

下载jad,https://varaneckas.com/jad/,目前最新版本是1.5.8g,看是2006年7月份更新的,时间比较久远了。

下载安装jadeclipse插件,https://sourceforge.net/projects/jadclipse/files/,目前版本是3.3,2007年更新,也是时间比较久远了。

但在开发过程中,遇到以下情况

/*jadclipse*/

/*
    DECOMPILATION REPORT

    Decompiled from: D:\e4.4wksp\HelloWorld\WebContent\WEB-INF\lib\spring-jdbc-5.2.20.RELEASE.jar
    Total time: 151 ms
    Jad reported messages/errors:
The class file version is 52.0 (only 45.3, 46.0 and 47.0 are supported)
JavaClassFileParseException: Invalid tag value 0x12
    Exit status: 0
    Caught exceptions:
*/

我使用的是以下环境

jdk1.8.0.20,

Eclipse Java EE IDE for Web Developers.

Version: Luna Service Release 2 (4.4.2)
Build id: 20150219-0600

所以想其他的办法

jd

看到有使用jd的,http://java-decompiler.github.io/

这个JD啊,有两种常用工具

1是作为单独工具对jar包或class文件进行反编译查看

2是作为eclipse插件使用

enhanced-class-decompiler

目前最新版本应该是3.2.2,可通过 eclipse marketplace安装,但我没有安装成功。

我直接使用离线方式安装的,在其网站 https://github.com/ecd-plugin/ 上下载离线安装文件并安装到eclipse即可。

然后在eclipse中设置class文件使用其打开。

安装和设置请自行寻找教程。

posted on 2022-05-27 08:42  骑着母猪去打猎  阅读(1820)  评论(0编辑  收藏  举报