- 浏览: 296274 次
文章分类
最新评论
-
feargod:
...
ActivityGroup的子activity响应back事件的顺序问题 -
hoarhoar:
谢谢你,终于解决了,我真是受够了,总是45秒钟,真是疯了。
youku 的广告必须要屏蔽 -
lilai:
...
youku 的广告必须要屏蔽 -
aijuans2:
...
youku 的广告必须要屏蔽 -
weiwo1978:
说的非常好,mark
SELECT语句执行的顺序
Jad - the latest version
<meta name="description" content="Jad - the fast Java decompiler"> <meta name="keywords" content="java,decompiler,jad"> Jad - the fast JAva Decompiler
- What's New
- Jad main features
- Known bugs and limitations
- Download Jad
- Installation
- Graphical UIs and utilities for Jad
- FAQ
- E-mail for contacts
- Disclaimer
What's New
NOTE: Jad is free for non-commercial use, but since the version 1.5.6 it's no longer free for commercial use. This means that Jad cannot be included into software products (especially decompilers) without my prior permission. If you want to use Jad (as a command-line utility or as a library) in your product(s) please contact me for conditions. At the same time, Jad can be used freely for personal needs in a commercial or non-commercial environments.
Jul 02, 2006: Minor update to version 1.5.8g for Windows and Mac OS X (Intel).
Jun 16, 2006: Added version for Mac OS X 10.4.6 (Intel).
Dec 21, 2005: changed contact email address to jad@kpdus.com.
Feb 29, 2004: Jad home page moved to http://www.kpdus.com/jad.html.
Dec 14, 2003: changed contact email address to kpdus@softhome.net.
Nov 23, 2001: the page moved to http://kpdus.tripod.com/jad.html.
Sep 15, 2001: updated jadAlign v1.01.
Aug 05, 2001: updated Jad 1.5.8e for Linux and Windows.
Jul 19, 2001: updated FrontEnd Plus v1.04.
Jul 15, 2001: added Jad for HP-UX 11.x.
Jul 15, 2001: updated FrontEnd Plus v1.03.
Jul 13, 2001: added jadAlign utility by Bernard Poulin.
Jul 12, 2001: updated FrontEnd Plus v1.02.
Jul 7, 2001: released the bug-fix version 1.5.8e for Windows.
Jun 18, 2001: alternative download locations removed because providing them violates the Yahoo Geocities Terms of Service.
May 19, 2001: released the bug-fix version 1.5.8d.
May 12, 2001: provided alternative download locations since many people reported difficulties with downloading Jad from Geocities (bogus authentication dialogs or "file not found" errors).
May 06, 2001: released the bug-fix version 1.5.8c. Added versions for Mac OS X, NetBSD 1.5.
Apr 29, 2001: released the bug-fix version 1.5.8b.
Apr 17, 2001: released the bug-fix version 1.5.8a.
Apr 14, 2001: released Jad 1.5.8 (JDK 1.3-compatible) for Windows, Linux (RH 7.0) and OS/2.
Feb 20, 2001: updated FrontEnd Plus v1.00.
Nov 14, 2000: added Jad 1.5.7g for Linux (Sparc).
Oct 15, 2000: released the bug-fix version 1.5.7g. Added FrontEnd Plus v0.08.
July 7, 2000: updated FrontEnd Plus v0.07.
July 6, 2000: added Jad 1.5.7f for BeOS 5.0.
July 4, 2000: added Jad 1.5.7f for FreeBSD 4.0 and OpenBSD 2.7. Updated the Linux versions of Jad.
June 29, 2000: released the bug-fix version 1.5.7f for Windows, Linux (RH 6.2), Solaris 8 (Intel), Solaris 7 (Sparc) and OS/2.
June 23, 2000: added Jad 1.5.7e for OS/2. Added FrontEnd Plus v0.06.
June 19, 2000: released the bug-fix version 1.5.7e. Added one Q&A.
June 10, 2000: updated FrontEnd Plus v0.05.
May 25, 2000: updated FrontEnd Plus v0.04.
Apr 26, 2000: updated FrontEnd Pro v0.03.
Mar 15, 2000: updated FrontEnd Plus v0.02.
Mar 14, 2000: added decompile.el, an add-on to JDE for GNU Emacs.
Jan 18, 2000: released the bug-fix version 1.5.7d. Added one Q&A.
Jan 13, 2000: FrontEnd v1.02 was replaced with FrontEnd Plus v0.01. Added link to FrontJad - another GUI for Jad.
Jan 10, 2000: released the bug-fix version 1.5.7c.
Dec 29, 1999: updated version for Rhapsody 5.3 (fixed the "incorrect magic" error).
Dec 20, 1999: added version for Rhapsody 5.3 (Power Macintosh, compiled by gcc 2.7.2.1). Added two Q&As to the FAQ section.
Dec 13, 1999: added a third-party GUI interface for Jad and links to other Jad-based decompilers.
Dec 04, 1999: released the bug-fix version 1.5.7a. The version for Linux compiled on RedHat 6.1.
For the list of differences from previous versions click here.
Jad main features
Jad is a Java decompiler, i.e. program that reads one or more Java class files and converts them into Java source files which can be compiled again.
Jad is a 100% pure C++ program and it generally works several times faster than decompilers written in Java.
Jad doesn't use the Java runtime for its functioning, therefore no special setup is required (like changes to the CLASSPATH variable).
Jad can be used:
- for recovering lost source codes;
- for exploring the sources of Java runtime libraries;
- as a Java disassembler;
- as a Java source code cleaner and beautifier.
Jad expects that supplied Java class files are valid ones, i.e. they can pass the Java Virtual Machine (JVM) verification successfully.
The Jad main features:
- Enhanced readability of the generated source code.
- Ability to comment Java source code with JVM bytecodes. Useful for verification and educational purposes.
- Full support for inner and anonymous classes.
- Fast decompilation and simple setup.
- Automatic conversion of identifiers garbled by Java obfuscators into valid ones.
- Free for non-commercial use. If you would like to use Jad for commercial purposes, please contact me for conditions.
Known bugs and limitations
- In certain cases when decompiling classes which contain inner classes, Jad cannot reliably sort out the extra arguments added to class constructors by Java compiler. In those cases Jad can generate constructors with an incorrect number of arguments or can fail to declare some local variables as final.
- ZIP and JAR files are not supported. However you can unzip those files and decompile the whole class tree. Use the instructions from Readme.txt.
- In those rare cases when Jad is unable to fully decompile constructs like labeled blocks with breaks or nested loops with inter-loop break/continue statements it generates the source with labels and goto statements which reflects program's control flow and displays the message "Couldn't fully decompile method <name>". Also when Jad couldn't reconstruct all try-catch-finally statements it displays the message "Couldn't resolve all exception handlers in method <name>".
- Currently Jad ignores the contents of the Line Number Table Attribute and the Source File Attribute.
- Currently Jad makes no use of the Java class hierarchy information. Consequently, Jad always chooses java.lang.Object as a common superclass of two different classes and inserts auxiliary casts where necessary.
- Jad doesn't handle inlined functions well.
Download Jad
Jad has a 'beta' status (see Disclaimer). Please send bug reports with attached .class files to me.
To download Jad click on links below.
These files are ZIP archives, save them with the extension .zip and verify file sizes after download.
If you get the error "File not found", refresh the page.
Jad 1.5.8g for Windows 9x/NT/2000 on Intel platform (238600 bytes).
Jad 1.5.8g for Mac OS X 10.4.6 on Intel platform (170707 bytes, compiled by GCC 4.0).
Jad 1.5.8e for HP-UX 11.x (293214 bytes).
Jad 1.5.8e for Linux on Intel platform (214917 bytes).
Jad 1.5.8e for Linux (statically linked) (389972 bytes) - take this version if the one above crashes or displays the "seek error" message.
Jad 1.5.8d for OS/2 (288717 bytes) - OS/2 version was cross-compiled on Windows using EMX and RSXNT packages, therefore it requires EMX runtime (EMX.DLL should be enough).
Jad 1.5.8c for FreeBSD 4.0 (322311 bytes) - statically linked.
Jad 1.5.8c for OpenBSD 2.7 (334499 bytes) - statically linked.
Jad 1.5.8c for NetBSD 1.5 (324440 bytes) - statically linked.
Jad 1.5.8c for Solaris 8 on Intel platform (264751 bytes).
Jad 1.5.8c for Mac OS X (Darwin 1.3) on PowerPC platform (266264 bytes).
Jad 1.5.7g for Linux on Sun Sparc platform (180606 bytes). Many thanks to Mr. J. Harding who offered an user account on his Sparc computer.
Jad 1.5.7g for Linux on Sun Sparc platform (346221 bytes) - statically linked.
Jad 1.5.7f for Solaris 7 on Sun Sparc platform (318096 bytes) - compiled on Sun 4m (Sparc10) using GCC 2.8.1, statically linked. Works on Solaris 2.6 as well. Many thanks to Mr. R. Volpe, NY who provided an user account on his Sparc computer.
Jad 1.5.7f for BeOS 5.0 on Intel platform (245422 bytes) - statically linked.
Jad 1.5.7b for Mac OS X (Rhapsody 5.3) on PowerPC platform (372317 bytes).
Jad 1.5.7a for Solaris 7 on Intel platform (252582 bytes) - try the version for Solaris 8 instead.
Jad 1.5.5.3 for AIX 4.2 on IBM RS/6000 platform (360970 bytes).
Installation
Unzip jad.zip file into any appropriate directory on your hard drive.
This will create two files:
- an executable file named 'jad.exe' (Windows 9x/NT/2000) or 'jad' (UNIX)
- README file 'Readme.txt', which contains the short user's manual
For UNIX users: make 'jad' executable: chmod a+x jad
Graphical UIs and utilities for Jad
FrontEnd Plus is a graphical decompiler for Windows 9x/NT that uses the command-line version of Jad as its decompiling engine. FrontEnd Plus is written and supported by Martin Cowley (reflectonus@blueyonder.co.uk).
Click here to download the latest version of FrontEnd Plus (v.1.04). The size of the zip archive is 784820 bytes.
Graphical decompilers that use Jad as their decompiling engine:
FrontEnd Plus - http://www.reflectonus.pwp.blueyonder.co.uk/download.htm [02/29/2004: page not found]
NMI's Java Code Viewer - http://www.trinnion.com/javacodeviewer [02/29/2004: Discontinued]
Decafe Pro - http://decafe.hypermart.net
mDeJava - http://molesoftware.hypermart.net [02/29/2004: site not found]
FrontJad - http://www.ire.pw.edu.pl/~mszklan/frontjad.htm [02/29/2004: page not found]
DJ Java Decompiler - http://members.fortunecity.com/neshkov/dj.html
Cavaj Java Decompiler - http://www.bysoft.se/sureshot/cavaj
JavaDecompiler - http://iago-soft.iespana.es/iago-soft/jdecompiler/jdecompiler.htm (in Spanish) [02/29/2004: page not found]
JadClipse, Jad plugin for Eclipse IDE - http://sourceforge.net/projects/jadclipse
decompile.zip - an add-on to the Java Development Environment (JDE) for GNU Emacs. It automatically decompiles a class file and offers you a buffer to view or edit it. The add-on is written and maintained by Ingo Koch (ingo.koch@ikoch.de).
VajDecompiler - http://www.ibldesign.com/lorin/VAJDecompiler.shtml - Jad frontend for VisualAge for Java
decomp.zip - yet another LISP code for Emacs that runs Jad on the current buffer. Contributed by R. Mecklenburg.
jadAlign v1.01 is an utility created by Bernard Poulin (bernard@acm.org) that re-alignes Java source files produced by Jad. The resulting file can then be used for source-level debugging (i.e. stepping in the code). The size of the archive is 20942 bytes.
JADClassFileNode - an open tool by A. Sazonov that replaces the built-in decompiler in JBuilder.
JASM - Java disassembler module for NetBeans IDE.
JavaDecompiler.vim - plugin for VIM editor by David Bowers.
FAQ
Q1: Is the source code of Jad available?
A1: Currently I have no plans to release the Jad source code for any purposes including porting to other computer platforms.
Q2: What is the option -dead for?
A2: This option forces Jad to decompile the dead portions of bytecode. For example, non-optimizing compilation of the following code can produce the dead bytecode:
if (false) { ... }This option should be on by default, but the incorrect dead bytecode can crash Jad.
Q3: Why does Jad fail to generate the throws clause in the method declarations like the one in
int divide(int a, int b) throws DivideByZero { ... } ?
A3: This throws clause is represented in the Java class files by the Exceptions attribute. The Java Virtual Machine itself doesn't use these attributes (well, at least, the common implementations of JVM), so they can be stripped out of the Java class files. Jad has no way of restoring this information in full if it's missing from the class file.
Q4: Why does Jad generate weird-looking static fields like class$java$lang$Float and static methods class$(String)?
A4: These fields/methods are the internal representation of the <classname>.class expression and automatically generated by compiler. For example, java.lang.Thread.class is translated into the following:
... ((class$java$lang$Thread == null) ? (class$java$lang$Thread = class$("java.lang.Thread")) : class$java$lang$Thread); ... static Class class$(String s) { try { return Class.forName(s); } catch(ClassNotFoundException ex) { throw new NoClassDefFoundError(ex.getMessage()); } } static Class class$java$lang$Thread;This is fixed in 1.5.8. The explanation for the previous versions: Jad doesn't convert all that back to the original expression, but apparently the Sun JDK 1.2 compiler is able to compile "the long format" successfully. JDK 1.3 compiler doesn't accept names containing class$, so in order to recompile the decomplied class you need to change all expressions similar to the conditional expression above to <classname>.class and remove static methods/fields whose names start with class$.
Q5: Jad refuses to decompile my class file saying "Class file version mismatch". What can I do?
A5: Use -debug option. Jad then complains about the version mismatch, but attempts to decompile the file anyway. Note that this works starting from the version 1.5.6e.
Q6: Jad fails to decompile my class file, it spits out a bunch of gotos and JVM instructions. Why is that?
A6: There could be several possible reasons: the class file has been obfuscated or it was produced by non-JDK Java compiler or some functions were inlined by Java compiler. Generally Jad works best with class files generated by Sun Java compilers. If you encounter such a behaviour, please send me a bug report with attached .class files.
Q7: How to decompile jar or zip archive with classes?
A7: "Unjar" (jar xvf <jarfile>) or unzip (using unzip or WinZip) the archive into a directory on your hard drive. Then see the next answer.
Q8: How to decompile the whole class tree?
A8: Run
jad -r [-d<directory_for_sources>] [<other_options>] <directory_with_classes>**/*.classOn Unix the last argument should be in single quotes. For more information please read Readme.txt.
Q9: Why do I get "Class <<ambiguous>>List not found" from the compiler?
A9: There are two List classes: java.awt.List and java.util.List. If Jad generates two import directives:
import java.awt.*; import java.util.*;and your class actually uses the List class, the compiler will complain. Prior version 1.5.7d use the command-line option -pi to prevent Jad from combining the import directives.
Q10: How to make the command-line options -ff -nonlb -space -t to be on by default?
A10: Use the environment variable JAD_OPTIONS to permanently override the default settings. The example for Windows:
set JAD_OPTIONS=-ff+ -nonlb+ -t+ -space+
Q11: How to extract Java classes from an executable file (.exe)?
A11: Use the Java-Split utility written by the Decafe Pro team. Download it from http://decafe.hypermart.net/javasplit.htm.
Or use J++Extract from http://www.multimania.com/dolmen/productions.
Q12: What does the error message "JavaClassFileParseException: Invalid tag value 0x0" mean exactly?
A12: It means that your file is not a valid Java class and Jad was unable to parse it successfully. Either the file was broken (for example, during download) or the package this class belongs to contains a custom Java class loader that modifies (or decrypts) Java classes after reading them into the memory. In both cases Jad cannot decompile this file as it is.
E-mail for contacts
If you have any questions, bug reports or comments regarding Jad, please send e-mail to jad@kpdus.com.
Disclaimer
Copyright 1997-2001 Pavel Kouznetsov. All rights reserved.
THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
THE SOFTWARE IS NOT DESIGNED OR INTENDED FOR USE IN ON-LINE CONTROL OF AIRCRAFT, AIR TRAFFIC, AIRCRAFT NAVIGATION OR AIRCRAFT COMMUNICATIONS; OR IN THE DESIGN, CONSTRUCTION, OPERATION OR MAINTENANCE OF ANY NUCLEAR FACILITY. THE AUTHOR DISCLAIMS ANY EXPRESS OR IMPLIED WARRANTY OF FITNESS FOR SUCH USES. YOU MUST REPRESENT AND WARRANT THAT YOU WILL NOT USE THE SOFTWARE FOR SUCH PURPOSES.
This page has been visited many times since December, 1997
<script language="JavaScript"> <!-- document.write("<font size=-1>Last modified on " + document.lastModified + "</font>"); // --> </script>
相关推荐
JAD-UI是JAD的一个图形用户界面版本,使得操作更加直观和友好。 **JAD的基本概念:** JAD的核心功能是对Java字节码进行反编译,它尝试恢复源代码结构,包括类、方法、变量等。虽然不能完全还原原始源代码,尤其是当...
Jad-GUI是一款流行的Java反编译工具,它提供了图形用户界面,使得操作更为直观和简便。 Jad-GUI全称为Java Decompiler Graphical User Interface,它允许开发者直接打开.jar或.class文件,查看其源代码。尽管原始的...
《jad-GUI:高效便捷的反编译利器》 在软件开发领域,有时我们需要查看或理解已编译的Java程序的内部实现,这就需要用到反编译工具。jad-GUI是其中备受推崇的一款,以其易用性和高效性赢得了开发者们的喜爱。本文将...
标题“jad-source.rar”指的是一个RAR格式的压缩文件,它包含了一个与Java应用程序相关的资源,特别是JAD(Java Application Descriptor)源代码。JAD文件是Java平台上用来描述JAR(Java Archive)文件元数据的文本...
1. 安装与运行:解压"Jad-the fast Java Decompiler.rar"后,我们得到jad.exe可执行文件,双击运行或通过命令行调用,即可启动Jad。 2. 菜单与选项:在图形界面中,用户可以选择打开单个或多个.class文件进行反编译...
Jad-Eclipse插件是专为Java开发者设计的一款实用工具,它允许用户在Eclipse集成开发环境中直接对.class文件进行反编译,以便查看和理解原始的源代码。这对于那些没有源码但需要分析或调试已编译Java类的场景特别有用...
标题中提到的"jad-java反编译工具eclipse插件"意味着JAD已经与Eclipse集成,成为Eclipse IDE的一个插件。Eclipse是一款广泛使用的开源集成开发环境,拥有丰富的插件生态系统,开发者可以根据需要安装各种插件来扩展...
JAD-java-src-decompiler
jad.exe- java反编译软件 一个类似于javap的java反编译工具,运行速度快,据说Front End Plus、mDeJava、Decafe Pro、Cavaj Java Decomplier、DJ Java Compiler、NMI's Java Class Viewer等反汇编工具都以jad作为...
Java反编译工具JAD-UI是专门针对Java字节码进行反编译的软件,它可以帮助开发者查看和理解已编译的Java类文件(.class文件)的源代码。在Java开发过程中,有时我们可能需要查看某个已编译库的源代码,但并没有源码...
Eclipse JAD 插件是Java开发者在Eclipse集成开发环境中进行反汇编和调试Java字节码的重要工具。JAD(Java decompiler)允许程序员查看已编译的.class文件的源代码,这对于理解第三方库的功能或者没有源码的程序来说...
反编译工具jad简单用法 以下假设jad.exe在c:\java目录下 一、基本用法 Usage: jad [option(s)] (s)> 直接输入类文件名,且支持通配符,如下所示。 c:\java\>jad example1.class c:\java\>jad *.class 结果是...
"Jad"就是一款强大的可视化Java反编译工具,专门用于这种情况。 Jad全称为Java Decompiler,它不仅支持反编译,还能提供友好的图形用户界面(GUI),使得开发者可以直观地查看和分析`.class`文件的内部结构。这个...
本篇文章将详细探讨“Jad”和“XJad”,这两个是用于Java反编译的实用工具。 **Jad** Jad 是一个历史悠久的Java反编译器,由Mark G. Reschke开发,用于将Java字节码转换回可读的源代码。尽管它不总是能够完美地...
Java小工具,通常被称为JAD,是Java平台上的一个实用程序,主要用于反编译Java字节码(.class文件)并将其转换为可读的源代码。这个工具对于开发者来说非常有用,因为它允许他们查看已编译的Java类文件内部的工作...
Usage:jad [option(s)] 直接输入类文件名,且支持通配符,如下所示。 c:\Java\>jad example1.class c:\Java\>jad *.class 结果是将example1.class反编译为example1.jad。将example1.jad改为example1.Java即得源文件...
标题"jad-java反编译"指明了我们讨论的核心——使用Jad来对Java字节码进行反编译。Jad是一款命令行工具,它能够解析Java字节码并生成类似于原始Java源代码的文本表示。这对于调试、学习或逆向工程已编译的Java代码...
消除jad产生的注释效果,亲测可以,可以自己修改条件 快捷方便
eclipse的jad反编译插件(内含详细教程) 1:下面的操作可能因为版本的问题导致不一致:据说可以支持MyEclipse10.X,9.X,8.X,6.X(我测试过10.7) 2:在文件夹{MYECLIPSE_HOME}(MyEclipse安装目录)\MyEclipse 10\...
### jad使用手册详解 #### 一、简介 jad是一款非常实用的Java反编译工具,可以帮助用户将`.class`文件反编译成源代码形式的`.java`文件。jad支持多个版本的Java语言,包括JDK 1.5与JDK 1.6等。本文档将详细介绍jad...