java反编译工具jad 1.5.8g支持 jdk1.5,jdk1.6。<br>说明很多<br>记住一个万能的命令基本就够用了。<br>jad -sjava -r -8 -o **\*.class <br><br>---------------<br>This is README file for Jad - the fast Java Decompiler.<br>Jad home page: http://www.kpdus.com/jad.html<br>Copyright 2001 Pavel Kouznetsov (jad@kpdus.com).<br><br>0. Please read the disclaimer on the Jad home page.<br><br>1. Installation.<br><br>Unzip jad.zip file into any appropriate directory on your hard drive.<br>This will create two files:<br><br> - an executable file named 'jad.exe' (Windows *)<br> or 'jad' (*n*x)<br><br> - this README file<br><br>No other setup is required.<br><br>2. How to use Jad<br><br>To decompile a single JAVA class file 'example1.class' <br>type the following:<br><br> jad example1.class<br><br>This command creates file 'example1.jad' in the current directory.<br>If such file already exists Jad asks whether you want to overwrite it or not.<br>Option -o permits overwriting without a confirmation.<br><br>You can omit .class extension and/or use wildcards in the names of<br>input files.<br><br>Option -s <ext> allows to change output file extension:<br><br> jad -sjava example1.class<br><br>This command creates file 'example1.java'. Be careful when using<br>options -o and -sjava together, because Jad can accidentally overwrite<br>your own source files.<br><br>Jad uses JAVA class name as an output file name. For example, if class<br>file 'example1.class' contains JAVA class 'test1' then Jad will create<br>file 'test1.jad' rather than 'example1.jad'. If you want to specify<br>your own output file name use the output redirection:<br><br> jad -p example1.class > myexm1.java<br><br>Option -d allows you to specify another directory for output files,<br>which are created, by default, in the current directory. For example:<br><br> jad -o -dtest -sjava *.class<br><br> (or jad -o -d test -s java *.class, which has the same effect)<br><br>This command decompiles all .class files in the current directory <br>and places all output files with extension .java into directory 'test'.<br><br><br>If you want to decompile the whole tree of JAVA classes,<br>use the following command:<br><br> jad -o -r -sjava -dsrc tree/**/*.class<br><br>This command decompiles all .class files located in all <br>subdirectories of 'tree' and creates output files in subdirectories<br>of 'src' according to package names of classes. For example, if file <br>'tree/a/b/c.class' contains class 'c' from package 'a.b', then <br>output file will have a name 'src/a/b/c.java'.<br><br>Note the use of the "two stars" wildcard ('**') in the previous<br>command. It is handled by Jad rather than the command shell, so on<br>UNIX the last argument should be single-quoted:<br><br> jad -o -r -sjava -dsrc 'tree/**/*.class'<br><br><br>In a case you want to check the accuracy of the decompilation or just<br>curious, there is an option -a which tells Jad to annotate the output<br>with JAVA Virtual Machine bytecodes.<br><br>Jad supports the inner and anonymous classes. <br>When Jad expands wildcards in the input file names, <br>it automatically skips matching inner classes. <br>On UNIX Jad skips inner classes if there is more than <br>one class specified in the command line.<br>Jad looks for inner classes in the directory of their top-level<br>container class.<br><br>3. List of the command-line options.<br><br>Jad accepts the following options:<br><br> -a - annotate the output with JVM bytecodes (default: off)<br> -af - same as -a, but output fully qualified names when annotating<br> -clear - clear all prefixes, including the default ones (can be abbreviated as -cl)<br> -b - output redundant braces (e.g., if(a) { b(); }, default: off)<br> -d <dir> - directory for output files (will be created when necessary)<br> -dead - try to decompile dead parts of code (if any) (default: off)<br> -disass - disassemble method bytecodes (no JAVA source generated)<br> -f - output fully qualified names for classes/fields/methods (default: off)<br> -ff - output class fields before methods (default: after methods)<br> -i - output default initializers for all non-final fields<br> -l<num> - split strings into pieces of maximum <num> chars (default: off)<br> -lnc - annotate the output with line numbers (default: off)<br> -lradix<num> - display long integers using the specified radix (8, 10 or 16)<br> -nl - split strings on newline character (default: off)<br> -nocast - don't generate auxiliary casts<br> -nocode - don't generate the source code for methods<br> -noconv - don't convert Java identifiers (default: convert)<br> -noctor - suppress the empty constructors<br> -nodos - do not check for class files written in DOS mode (CR before NL, default: check)<br> -nofd - don't disambiguate fields with the same names by adding signatures to their names (default: do)<br> -noinner - turn off the support of inner classes (default: on)<br> -nolvt - ignore Local Variable Table information<br> -nonlb - don't output a newline before opening brace (default: do)<br> -o - overwrite output files without confirmation (default: off)<br> -p - send decompiled code to STDOUT (e.g., for piping)<br> -pi<num> - pack imports into one line after <num> imports (default: 3)<br> -pv<num> - pack fields with identical types into one line (default: off)<br> -pa <pfx>- prefix for all packages in generated source files<br> -pc <pfx>- prefix for classes with numerical names (default: _cls)<br> -pf <pfx>- prefix for fields with numerical names (default: _fld)<br> -pe <pfx>- prefix for unused exception names (default: _ex)<br> -pl <pfx>- prefix for locals with numerical names (default: _lcl)<br> -pm <pfx>- prefix for methods with numerical names (default: _mth)<br> -pp <pfx>- prefix for method parms with numerical names (default: _prm)<br> -r - restore package directory structrure<br> -radix<num> - display integers using the specified radix (8, 10 or 16)<br> -s <ext> - output file extension (by default '.jad')<br> -safe - generate additional casts to disambiguate methods/fields (default: off)<br> -space - output space between keyword (if/for/while/etc) and expression (default: off)<br> -stat - display the total number of processed classes/methods/fields<br> -t - use tabs instead of spaces for indentation<br> -t<num> - use <num> spaces for indentation (default: 4)<br> -v - display method names being decompiled<br> -8 - convert UNICODE strings into 8-bit strings<br> using the current ANSI code page (Win32 only)<br> -& - redirect STDERR to STDOUT (Win32 only)<br><br>All single-word options have three formats:<br><br> -o - 'reverses' value of an option<br> -o+ - set value to 'true' or 'on'<br> -o- - set value to 'false' or 'off'<br><br>You can specify the options you want to be set by default in the environment variable<br>JAD_OPTIONS. For example:<br><br>JAD_OPTIONS=-ff+ -nonlb+ -t+ -space+<br>
- 1
- 粉丝: 62
- 资源: 6
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
- 1
- 2
- 3
- 4
- 5
- 6
前往页