推荐一款Java反编译器,也使用了挺久的了,感觉还是很好用,就拿出和大家分享一下。
这款反编译器叫 "Java Decompiler", 由 Pavel Kouznetsov开发,目前最新版本为0.2.5.
它由 C++开发,并且
官方可以下载windows、linux和苹果Mac Os三个平台的可执行程序。
本人之所以认为它还不错,是其有下面几个功能:
1. 支持对整个Jar文件进行反编译,并本源代码可直接点击进行相关代码的跳转
2. 支持众多Java编译器的反编译(支持泛型,Annotation和enum枚举类型)
- jdk1.1.8
- jdk1.3.1
- jdk1.4.2
- jdk1.5.0
- jdk1.6.0
- jikes-1.22
- harmony-jdk-r533500
- Eclipse Java Compiler v_677_R32x, 3.2.1 release
- jrockit90_150_06
图示:
3.快速查找源文件功能(Ctrl+Shift+T)
4. 安装方便.只有600K,直接运行即可。
5. 支持文件的拖放功能,源代码高亮显示
当然对于反编译的效果,感觉还可以。当然在本人使用过程也出现过,编译效果不佳的情况。但从总体上来看已经让我挺满意了,呵呵。
用c++写成,可反编译class文件,支持jar包级的反编译,可将整个jar包直接保存为*.src.zip源代码包,反编译迅速,错误率极少,详细的看下面
下载地址:http://java.decompiler.free.fr/?q=jdgui
Introduction
The aim of “Java Decompiler” projectis to develop tools to decompile and analyze Java 5, and upper,“.class” files.
JD-Core is a freeware library that reconstructs Java source code from oneor more “.class” files. JD-Core may be used to recover lost sourcecode and explore the source of Javaruntime libraries.New features of Java 5, such asannotations, generics or type “enum”, are supported. JD-GUIincludes JD-Core library.
JD-GUI is a standalone graphical utility that displaysJava source codes of“.class” files. You can browse the reconstructed source code withthe JD-GUI for instant access to methods and fields.
JD-Core and JD-GUI are free for non-commercial use. This meansthat JD-Core and JD-GUI shall not be included or embedded intocommercial software products. Nevertheless, JD-Core and JD-GUI maybe freely used for personal needs in a commercial or non-commercialenvironments.
What's New News
12 02 2008
JD-GUI have been downloaded nearly 11.000 times last month!
11 24 2008
JD-GUI 0.2.6 is ready. This is the first release fixing the bugsthat you have reported.
10 29 2008
The "Drupalization" of Web site has been morelonger than expected but it is done !
You can post suggestions or reportbugs now.
Click here to view all news.