Java decompilation tool Jad usage

Source: Internet
Author: User

Java decompilation tools are often used in daily work. You can search by search engine.
The most common command parameters are as follows:

Jad v1.5.8f. Copyright 2001 Pavel Kouznetsov (kpdus@softhome.net ).
Usage: Jad [option (s)] <FILENAME (s)>
Options:-a-generate JVM instructions as comments (annotate)
-Af-output fully qualified names when annotating
-B-generate redundant braces (braces)
-Clear-clear all prefixes, including the default ones
-D <dir>-directory for output files
-Dead-try to decompile dead parts of code (if there are any)
-Dis-disassembler only (disassembler)
-F-generate fully qualified names (fullnames)
-FF-output fields before methods (fieldsfirst)
-I-print default initializers for fields (definits)
-L <num>-split strings into pieces of max <num> Chars (splitstr)
-Lnc-output original line numbers as comments (lnc)
-Lradix <num>-display long integers using the specified Radix
-NL-split strings on newline characters (splitstr)
-Noconv-Don't convert Java identifiers into valid ones (noconv)
-Nocast-don't generate auxiliary casts
-Noclass-Don't convert. Class Operators
-Nocode-don't generate the source code for methods
-Noctor-suppress the empty Constructors
-Nodos-Turn off check for class files written in DOS mode
-Nofd-Don't disambiguate fields with the same names (nofldis)
-Noinner-turn off the support of inner classes
-Nolvt-ignore local variable table entries (nolvt)
-Nonlb-Don't insert a newline before opening brace (nonlb)
-O-overwrite output files without confirmation
-P-send all output to stdout (for piping)
-Pa <pfx>-prefix for all packages in generated source files
-PC <pfx>-prefix for classes with numerical names (default: _ CLs)
-PE <pfx>-prefix for unused exception names (default: _ ex)
-PF <pfx>-prefix for fields with numerical names (default: _ signature)
-Pi <num>-pack imports into one line using. * (packimports)
-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)
-PV <num>-pack fields with the same types into one line (packfields)
-R-Restore package directory structure
-Radix <num>-display integers using the specified Radix (8, 10, or 16)
-S <ext>-output file extension (default:. JAD)
-Safe-generate additional casts to disambiguate methods/Fields
-Space-output space between keyword (if, while, etc) and expression

-Stat-show the total number of processed classes/methods/Fields
-T <num>-use <num> spaces for indentation (default: 4)
-T-use tabs instead of spaces for indentation
-V-show method names while decompiling
-8-convert Unicode strings into ANSI strings (ANSI)
-&-Redirect stderr to stdout
Jad-sjava-r-o-DSRC-8 **/*. Class

The command parameters are described as follows:
-Sjava: the extension of the reverse file is Java, and the default file extension is Jad.
-R: restores the directory structure according to the class package.
-O: If the output file exists, it will be overwritten without prompting.
-8: The uncode character is converted to an ANSI character. After this parameter is specified, "/u65f6/u95f4" in Java code is converted to "time"
-DSRC: output the compiled Java file to the src directory.
**/*. Class: decompile all class files in the current directory and sub-directories.

All command parameters of Jad are as follows:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.