- 浏览: 250626 次
- 性别:
- 来自: 北京
文章分类
最新评论
-
no_studio:
期待实现SqlServer
发布异种数据库导入工具jmyetl-1.0.2 -
babydeed:
不错 再接再厉
发布异种数据库导入工具jmyetl-1.0.2 -
iihero:
niwtsew 写道贴个俺自己写的linux下的版本,其实没必 ...
命令行快速找出class文件所在的jar包 -
niwtsew:
说错,是strings不是string
命令行快速找出class文件所在的jar包 -
niwtsew:
贴个俺自己写的linux下的版本,其实没必要用7z,直接jar ...
命令行快速找出class文件所在的jar包
转自:http://www.kpdus.com/jad.html
<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>**/*.class
On 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
<!-- document.write("<font size=-1>Last modified on " + document.lastModified + "</font>"); // -->
发表评论
-
命令行快速找出class文件所在的jar包
2012-02-28 18:14 3956for %i in (dir/b/s *.jar) do 7z ... -
常用的数据库连接串(JDBC篇)
2011-12-23 06:58 0看到网上传来传去的jdbc url连接串总结,好多都是粘来粘去 ... -
DBCP连接池的最简单应用(用于ORACLE数据库)
2011-11-19 05:54 4397鉴于有人问起DBCP直接用于JDBC连接的问题,我做了一个最简 ... -
eclipse3.4及以上版本的恢复
2011-08-28 04:58 2294eclipse 3.4以前的版本,如果出现什么问题了,一般都 ... -
使用Java实现对dbf文件的简单读写
2004-06-09 17:13 944我将dbf文件的读写基本分成四个类,Writer,Reader ... -
简单的整理了一下分页,希望对初学者有帮助
2004-06-23 17:37 696准备工作:在Oracle下,建立一张表:CREATE TABL ... -
编写更快的托管代码[http://blog.csdn.net/zade/category/162553.aspx]
2005-12-14 11:14 952编写更快的托管代 ... -
数据访问技术路线图[摘自MSDN]
2005-12-15 19:04 778数据访问技术路线图 发布日期: 3/22/2005 | 更新 ... -
java 去掉字符串中的'\'字符
2006-11-03 20:00 1058最近发现比较简单的去掉'\'字符居然不能直接用'\'去替。 ... -
python用法: post一个http请求, schedule一个task
2008-02-29 12:29 1586内容在http://iihero.cn上也有,这里转摘一下。近 ... -
用python来解析xml文件(简单情况)
2008-03-02 17:32 1186首先,sax解析最直观,当然,也可以容许xml文件出些错。先给 ... -
在一个目录下边快速创建大量文件及目录(使用dos batch)
2008-03-18 13:01 929@echooffsetnum=100000REMfor/ ... -
如何通过dll文件生成对应的lib文件(开发人员的一个小技巧)
2008-09-28 10:18 948如若转载,请尊重个人劳动,务必注明原始出处。iihero 20 ... -
列一份跨平台开发的读书清单[C/C++ (or Java?)]
2009-03-09 23:20 758如果要开一份跨平台开 ... -
自己动手编译播放器MPC-HC的源码
2009-05-19 21:28 983好久没有关注MPC(Media Player Classic) ... -
Java Performance 总结(1. Class Loader)
2010-06-30 06:50 796关于Java性能方面的东西,涉及挺多。一直想写个总结。 第一 ...
相关推荐
Jad-the fast Java Decompiler.rar
jad-java反编译工具eclipse插件,jad-java反编译工具eclipse插件
java反编译工具JAD-UI java class反编译工具
1、解压到任意目录 2、确保安装了winrar 3、点击反编译.bat,根据提示,将jar拖进dos对话框 4、完成
java反编译应用程序,打开后直接把包拖进去。不过加密(混淆)后的看到变量是以$开头的
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作为...
反编译工具jad简单用法 以下假设jad.exe在c:\java目录下 一、基本用法 Usage: jad [option(s)] (s)> 直接输入类文件名,且支持通配符,如下所示。 c:\java\>jad example1.class c:\java\>jad *.class 结果是...
在eclipse下安装jad插件
用过的最好的反编译工齿根,直接解压后使用,可以反编译jar包,还能生成相关类的目录结构等。。。
Usage:jad [option(s)] 直接输入类文件名,且支持通配符,如下所示。 c:\Java\>jad example1.class c:\Java\>jad *.class 结果是将example1.class反编译为example1.jad。将example1.jad改为example1.Java即得源文件...
java反编译工具JAD-UI java class反编译工具
需要反编译Java的class文件,用于eclipse上关于jad反编译工具的插件
消除jad产生的注释效果,亲测可以,可以自己修改条件 快捷方便
这是我用过的最好的Java反编译工具,可视化,方便, 在Java文件丢失,只保存有class文件时, 他就能帮你找回Java文件
一个不错的java反编译工具,jad和XJad,可以反编译java的jar文件
eclipse的jad反编译插件(内含详细教程) 1:下面的操作可能因为版本的问题导致不一致:据说可以支持MyEclipse10.X,9.X,8.X,6.X(我测试过10.7) 2:在文件夹{MYECLIPSE_HOME}(MyEclipse安装目录)\MyEclipse 10\...
java小工具,java小工具,欢迎下载
Java反编译工具- jad图形工具 jd-gui-0.2.10.windows.rar
此项目是对是Spring3中缓存模块的扩展,增加了对EhCache、MemCache、Redis的实现,使之支持Spring3注解来操作缓存,并且提供了一些新新的功能,具有以下特点: 1、提供统一的缓存操作api; 2、支持同时使用EhCache、...