Class decompilation plug-in

Source: Internet
Author: User

1. Download The jadclipse plug-in
Note: jadclipse_3.1.0.jar, which supports eclipse3.1m6 ~ 3.2m2
Jadclipse_3.2.0.jar, which supports eclipse3.2m3 and eclipse3.2m4.
Jadclipse_3.2.4.jar, which supports eclipse3.2m5 ~ 3.3m5
Jadclipse_3.0.jar, which supports eclipse3.3m6 and later versions

2. Download jad.exeand copy the downloaded jad.exe file to the bin directory of JRE, or add the absolute path of the Jad execution file to the path of the environment variable.

3. Configure jadclipse and create the directory structure of myplugins \ jadclipse \ eclipse \ plugins under the directory % eclipse_home % \. Put jadclipse_3.3.0.jar (used for eclipse3.5) under the Plugins directory, create jadclipse under the % eclipse_home % \ links directory. link file (the name can be obtained at will), jadclipse. link content: Path = .. \ jadclipse (note that the double Backslash "\" is required "\\")

4. Restart eclipse and check WINDOW> preferences> JAVA> jadclipse. If jadclipse is displayed, the preceding configuration is successful. Otherwise, check the preceding configuration.

5. Path to decomplier: Specifies the location of the JAD file of The Decompilation tool. (It can be set to jad.exe under the directory of the jrebind)

6. Set the associated editors of *. Class file to jadclipse class File Viewer as the default item.

In addition, batch Decompilation
In cmd, go to the path where the class file is located and enter the command: Jad-o-r-s Java-d src *. Class
Parameter description:
-O: overwrite the old file without prompting for confirmation.
-R: Reload and generate the package structure.
-S: defines the extension of the output file. Jad is the default extension. We need the. Java source file after decompiling.
-D: directory of the output file. SRC indicates that all decompiled files are placed in the src directory.
*. Class: Specifies to parse all files ending with. class in this folder, that is, to parse the class file

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.