본문 바로가기

Computer

Class to Java 역컴파일러 JAD


cmd 창에서

jad -r -d .\srcDir -s java .\{PATH}\*.class

Options :

-r : 패키지 형태로 디렉토리 구조를 만듬

-d : 디컴파일될 디렉토리 지정

-s java : 디컴파일된 파일의 확장자를 java로 지정

-8  : 유니코드를 8 bit 스트링형으로 변환
 (jad -o -r -8 -sjava -dsrc .\*.class)

-a       - annotate the output with JVM bytecodes (default: off)
-af      - same as -a, but output fully qualified names when annotating
-clear   - clear all prefixes, including the default ones (can be abbreviated as -cl)
-b       - output redundant braces (e.g., if(a) { b(); }, default: off)
-d <dir> - directory for output files (will be created when necessary)
-dead    - try to decompile dead parts of code (if any) (default: off)
-disass  - disassemble method bytecodes (no JAVA source generated)
-f       - output fully qualified names for classes/fields/methods (default: off)
-ff      - output class fields before methods (default: after methods)
-i       - output default initializers for all non-final fields
-l<num>  - split strings into pieces of maximum <num> chars (default: off)
-lnc     - annotate the output with line numbers (default: off)
-lradix<num> - display long integers using the specified radix (8, 10 or 16)
-nl      - split strings on newline character (default: off)
-nocast  - don't generate auxiliary casts
-nocode  - don't generate the source code for methods
-noconv  - don't convert Java identifiers (default: convert)
-noctor  - suppress the empty constructors
-nodos   - do not check for class files written in DOS mode (CR before NL, default: check)
-nofd    - don't disambiguate fields with the same names by adding signatures to their names (default: do)
-noinner - turn off the support of inner classes (default: on)
-nolvt   - ignore Local Variable Table information
-nonlb   - don't output a newline before opening brace (default: do)
-o       - overwrite output files without confirmation (default: off)
-p       - send decompiled code to STDOUT (e.g., for piping)
-pi<num> - pack imports into one line after <num> imports (default: 3)
-pv<num> - pack fields with identical types into one line (default: off)
-pa <pfx>- prefix for all packages in generated source files
-pc <pfx>- prefix for classes with numerical names (default: _cls)
-pf <pfx>- prefix for fields with numerical names (default: _fld)
-pe <pfx>- prefix for unused exception names (default: _ex)
-pl <pfx>- prefix for locals with numerical names (default: _lcl)
-pm <pfx>- prefix for methods with numerical names (default: _mth)
-pp <pfx>- prefix for method parms with numerical names (default: _prm)
-r       - restore package directory structrure
-radix<num> - display integers using the specified radix (8, 10 or 16)
-s <ext> - output file extension (by default '.jad')
-safe    - generate additional casts to disambiguate methods/fields (default: off)
-space   - output space between keyword (if/for/while/etc) and expression (default: off)
-stat    - display the total number of processed classes/methods/fields
-t       - use tabs instead of spaces for indentation
-t<num>  - use <num> spaces for indentation (default: 4)
-v       - display method names being decompiled
-8       - convert UNICODE strings into 8-bit strings
using the current ANSI code page (Win32 only)
-&       - redirect STDERR to STDOUT (Win32 only)

All single-word options have three formats:

-o    - 'reverses' value of an option
-o+   - set value to 'true' or 'on'
-o-   - set value to 'false' or 'off'



'Computer' 카테고리의 다른 글

[Ubuntu] 한글 입력 및 인코딩  (0) 2008.07.30
Maven  (0) 2008.06.23
[Linux] Screen  (0) 2008.05.22
Velocity toolbox를 사용한 Servlet & Velocity 의 연동  (0) 2008.05.07
Servlet & Velocity 연동  (0) 2008.04.25