Eclipse decompilation tool Jad and plug-in JadClipse Configuration

Source: Internet
Author: User

Jad is a Java decompilation tool and is executed using command lines. It is the same as the javac command in java that comes with JDK. However, it is not convenient to use it because it runs on the console. Fortunately, there is an eclipse plug-in JadClipse. The combination of the two can easily view the source code of the class file in eclipse. The following describes the Configuration:
A. Download JadClipse, Example
B. Download Jad, http://www.varaneckas.com/jadand download the corresponding version.
C. Copy the downloaded Jadclipse, such as net. sf. jadclipse_3.3.0.jar, to the plugins directory under Eclipse. Of course, you can also use links for installation, but it is troublesome.
D.copy jad.exe to the binfile under the JDK installation directory (convenient, put together with Common commands such as java and javac, you can directly use jad commands on the console ), the directory on my machine is D: \ Program Files \ Java \ jdk1.6.0 _ 02 \ bin \ jad.exe
F. then, restart Eclipse and find Eclipse-> Window-> Preferences-> Java. At this time, you will find that there is a JadClipse option more than the original one. Click it and it will appear, as shown below :, enter the jad.exe location you just placed in Path to decompilerand create a directory for the temporary file ,.. Of course, there are some sub-options in JadClipse, such as Debug and Directives. Follow the default configuration.
G. After the basic configuration is complete, you can check the default open mode of the class File, Eclipse-> Window-> Preferences-> General-> Editors-> File Associations. We can see:
We can see that there are two ways to open the class File: JadClipse and the Class File Viewer that comes with Eclipse, and JadClipse is the default.
H. The configuration is complete. Now we can view the source code, select the class to be viewed, and press F3 to view the source code. For example, view the Target in Annotation and use jad to view the source code as follows:
You can see the top line
"// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.", it indicates that it is Decompiled by jad.
PS: It is said on the Internet that it will not forcibly decompile classes with source code, that is, it will still use the Class File Viewer that comes with eclipse to view class files. I have not verified this yet. I also attached my jad and jadclipse compressed packages for you to download:/Files/landon/DeComiler.rar

Related Article

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.