关于SegmentFault:Eclipse中安装反编译工具FernflowerEnhanced-Class-Decompiler

5次阅读

共计 1482 个字符,预计需要花费 4 分钟才能阅读完成。

IntelliJ IDEA 一个吸引人的中央在于,他有比拟好的反编译工具,这让 Eclipse 用户牙痒痒。但不要紧,本文介绍如何在 Eclipse IDE 中应用 IntelliJ IDEA 的反编译工具 Fernflower。

为啥须要反编译

很多 jar 不提供源码,那么关上 class 是这个鸟样。

不具备人类可读性。因而须要反编译。

什么是 Fernflower

那么我是怎么晓得 Fernflower 的呢?你轻易用 IntelliJ IDEA 关上一个 jar 中的 class 文件,能够看到上面的信息,这就是 IEDA 中的反编译工具 Fernflower。

看官网介绍 Fernflower(https://github.com/JetBrains/…)

Fernflower is the first actually working analytical decompiler for Java and probably for a high-level programming language in general“Fernflower 是第一个真正为 Java 工作剖析反编译器,通常也实用于个别的高级编程语言”

看介绍是很牛批的样子,当然理论也是。

如何获取 Fernflower

十分遗憾的是,Fernflower 是 IntelliJ IDEA 独家所有,那我是怎么搞定的呢?

我先在 eclipse 市场找了下,没有找到 Fernflower,却找到了 Enhanced Class Decompiler

看官网介绍(https://marketplace.eclipse.o…)

Enhanced Class Decompiler integrates JD, Jad, FernFlower, CFR, Procyon seamlessly with Eclipse and allows Java developers to debug class files without source code directly. It also integrates with the eclipse class editor, m2e plugin, supports Javadoc, reference search, library source attaching, byte code view and the syntax of JDK8 lambda expression.

简言之,Enhanced Class Decompiler 集 JD、Jad、FernFlower、CFR、Procyon 等各种反编译工具之大成。换言之,FernFlower 就是我 Enhanced Class Decompiler 的一个子集呗。

呵呵,好一招曲线救国。用 Enhanced Class Decompiler 变相用了 FernFlower。

如何在 Eclipse IDE 中装置 Fernflower

1. 在线装置

这是最简略的形式。应用 Eclipse 的同学都懂。

装置地址是:https://ecd-plugin.github.io/…

2. 离线装置

获取离线安装包 zip 文件(见附件),在“Add Repository”中指定该 zip 文件即可。

3. 可选组件

个别就选 Core 就够用了,不嫌多就全选上。

装完重启 Eclipse 就能看到这个工具了。

怎么应用 Fernflower

右键 class 文件,应用如何在 Eclipse IDE 中装置 FernFlower 关上即可

反编译胜利!看到庐山真面目了。

起源:https://waylau.com/eclipse-in…

欢送关注公众号【码农开花】一起学习成长
我会始终分享 Java 干货,也会分享收费的学习材料课程和面试宝典
回复:【计算机】【设计模式】【面试】有惊喜哦

正文完
 0