016-Java Decompiler(Java反编译工具)

Java Decompiler官网地址:http://jd.benow.ca/

官网介绍:

The “Java Decompiler project” aims to develop tools in order to decompile and analyze Java 5 “byte code” and the later versions.

JD-Core is a library that reconstructs Java source code from one or more “.class” files. JD-Core may be used to recover lost source code and explore the source of Java runtime libraries. New features of Java 5, such as annotations, generics or type “enum”, are supported. JD-GUI and JD-Eclipse include JD-Core library.

JD-GUI is a standalone graphical utility that displays Java source codes of “.class” files. You can browse the reconstructed source code with the JD-GUI for instant access to methods and fields.

JD-Eclipse is a plug-in for the Eclipse platform. It allows you to display all the Java sources during your debugging process, even if you do not have them all.

JD-IntelliJ is a plug-in for... the IntilliJ IDE.

JD-Core, JD-GUI & JD-Eclipse are open source projects released under the GPLv3 License.

Java Decompiler是Java语言的反编译工具,目前提供了:图形界面化的工具、Elipse插件、Intellij Idea插件。都可以从官网http://jd.benow.ca/下载。

官网下载入口如下图:

扫描二维码关注公众号,回复: 115772 查看本文章

1 各种操作系统的图形化界面工具下载

2 Eclipse开发平台插件下载

3 Intellij  Idea开发平台插件下载

 

安装方法如下:

1 windows下安装方法

首先需要下载window图形化界面的工具压缩包。

然后解压上面的压缩包,里面的内容如下。双击jd-gui.exe即可运行。

软件运行界面如下:

2 Eclipse离线安装Java Decompiler插件

第一步:下载eclipse插件

Eclipe的Java Decompiler插件名为JD-Eclipse,插件下载地址http://jd.benow.ca/

下载后的压缩包:

第二步:安装插件

Ecipse安装JD-Eclipse(即Java Decompiler)插件步骤如下:

打开Help——》Install  New  Software... 窗口

选择下载到本地的插件压缩包

下面就开始安装了,速度可能有点慢

如果弹出来提示,点击ok继续安装就可以。

安装完成之后,需要重启eclipse

等待eclipse重启之后,查看插件是否安装成功

查看 Window ->Preferences--> Java-->Decompiler,看下Demopiler选项是否存在,如果存在则说明安装成功了,此处也可以配置JD-Eclipse(即Java Decompiler),如下图.

下面查看Class文件的关联

打开 Window  --> Preferences--> General -->Editors -->File Associations 窗口,你就可以看到Class是怎么关联JD-Eclipse(即Java Decompiler),默认的配置如下
 

上述配置的大概意思是指:能够找到源代码的Class文件,则使用Eclipse的文件查看器打开,否则就使用JD-Eclipse插件(即Java Decompiler)的文件查看器打开

如何卸载JD-Eclipse插件

步骤如下

1)打开Help ==> Installation Details 


2)选择 中卸载的插件JD-Eclipse  Plug-in,然后点击Uninstall...即可完成卸载

猜你喜欢

转载自www.cnblogs.com/jepson6669/p/8997897.html