Java class file decompilation tool Jad Application

Source: Internet
Author: User

Java class file decompilation tool Jad Application
Jad usage:

Http://www.kpdus.com/jad.html official latest version, support for jdk1.6

Jad, a simple and easy-to-use decompilation tool in Java, can easily decompile. class into. java. Click to download

I. Basic usage
Usage: Jad [option (s)]
Enter the class file name directly and support wildcards, as shown below.
C:/Java/> Jad example1.class
C:/Java/> Jad *. Class
The result is to decompile example1.class into example1.jad. Change example1.jad to example1.java to get the source file.

Ii. Option-o
No prompt. overwrite the source file.

Iii. Option-S
C:/Java/> Jad-sjava example1.class
The Decompilation result uses. Java as the extension.

Iv. Option-P
Output The Decompilation result to the screen
C:/Java/> Jad-P example1.class
Redirects the decompilation result to a file.
C:/Java/> Jad-P example1.class> example1.java

V. Option-d
Specify the directory of the output file for decompilation
C:/Java/> Jad-o-Dtest-sjava *. Class

This article Reprinted from the network base camp: http://www.haoad.net/Info/3883.Html

It is wrong to decompile others' programs, but sometimes, for some reason, you have to decompile others' code, you need a tool. Xiaoying Java source code decompilation expert v1.4 development version is a good tool, but it can only decompile the programs compiled by JDK 1.4.2 and earlier versions, and JDK and later cannot be used, but you can download Jad. EXE to decompile class files one by one, but if there are dozens or hundreds of folders, And the directory is very deep, it will be troublesome, this provides a method to decompile the entire directory directly using the command line: Batch decompilation using Jad

Jad-o-r-sjava-d src bin/**/*. Class

SRC: indicates the reverse structure of the object.

Bin: indicates the start of a package.

Decompile all. Classes in BIN to Jad under SRC to download: File Name: jadnt157.ziphttp: // download.pchome.net/php/dl.php? SID = 1, 9111

Jad: decompilation Tool
Decompiling a class file into a Java File
Install jad.exe in the F:/Java/Jad directory.
Copy the file *. class to be decompiled to this directory and follow these steps,
In the command line window, enter the Jad directory,
Then run: Jad-s Java *. Class (Appendix, *. Class indicates the name of the file to be decompiled)
If the *. Class file and the Jad program are not in the same directory, the PATH environment variable is used,
Add the directory where Jad is located to the path: Set Path = % PATH %; F:/Java/Jad
If you want to understand jadmore Detailed Help information, run jad.exe to view

Set jad.exe to the C:/Java directory.

I. Basic usage
Usage: Jad [option (s)]
Enter the class file name directly and support wildcards, as shown below.
C:/Java/> Jad example1.class
C:/Java/> Jad *. Class
The result is to decompile example1.class into example1.jad. Change example1.jad to example1.java to get the source file.

Ii. Option-o
No prompt. overwrite the source file.

Iii. Option-S
C:/Java/> Jad-sjava example1.class
The Decompilation result uses. Java as the extension.

Iv. Option-P
Output The Decompilation result to the screen
C:/Java/> Jad-P example1.class
Redirects the decompilation result to a file.
C:/Java/> Jad-P example1.class> example1.java

V. Option-d
Specify the directory of the output file for decompilation
C:/Java/> Jad-o-Dtest-sjava *. Class

6. Option-R
Output the file directory according to the *. Class Package Structure
C:/Java/> Jad-o-r-Dtest-sjava D:/1/**/*. Class
Decompile the. Class file in the D:/1/folder to the test directory according to the package structure of the original program.

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.