Java Anti-compiler tool Jad simple usage

Source: Internet
Author: User
Tags command line

Anti-compiler tool Jad simple usage

The following assumptions Jad.exe under the C:\java directory

First, basic usage

Usage:jad[option (s)]

Enter the class file name directly and support wildcard characters, as shown below.

C:\java\>jad Example1.class

C:\java\>jad *.class

The result is to decompile the Example1.class to Example1.jad. Change Example1.jad to Example1.java source file.

Second, Option-o

Do not prompt, overwrite source file

Third, Option-s

C:\java\>jad-sjava Example1.class

Decompile results with. java as the extension.

Four, Option-p

Output the decompile results to the screen

C:\java\>jad-p Example1.class

Redirecting the decompile results to a file

C:\java\>jad-p Example1.class>example1.java

Five, option-d

Specify the decompile output file directory

C:\java\>jad-o-dtest-sjava *.class

List of command line selections

-A-annotation output in JVM byte format

-af-A, but with full name when annotations

-clear-Clears all prefixes

-B-Output more than parentheses (e.g., if (a) {B ();}, Default:no)

-D

-Specifies the file directory of the output file

-dead-Dead part of the attempt to decompile the code (DEFAULT:NO)

-disass-Do not decompile in bytecode (no JAVA source generated)

-F-Output the entire name, whether it's a class or a method

-FF-members of the output class before the method (Default:after methods)

-I-outputs the default initial value of all variables

-L-The character (Default:no) that divides the strings into a specified number of blocks

-LNC-Annotate the output file with a line number (Default:no)

-NL-split strings with new line characters newline character (Default:no)

-nodos-don't check to see if the class file is written in DOS (CR before NL, Default:check)

-nocast-do not generate secondary files

-nocode-do not generate source code for the method

-noconv-do not convert Java definition characters (DEFAULT:DO)

-noctor-null constructor exists not allowed

-noinner-Turn off support for internal classes (Default:turn on)

-NOLVT-table information for local variables ignored

-NONLB-Do not output a new line before opening a bracket (default:do)

-O-do not need to confirm direct overwrite output (Default:no)

-P-sends the decompile code to the standard output STDOUT (e.g., for piping)

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.