Java Anti-compilation tool jad and plugin jadclipse configuration tutorial

Source: Internet
Author: User

Jad is a Java anti-compilation tool, and Eclipse's plug-in jadclipse, which combine to easily view the source code of a class file in Eclipse.

Here's a look at the configuration:

    1. Download Jadclipse,http://jadclipse.sourceforge.net/wiki/index.php/main_page#download, download the latest Net.sf.jadclipse_3.3.0.jar
    2. Download Jad,http://www.varaneckas.com/jad download win version
    3. Copy the downloaded Jadeclipse,net.sf.jadclipse_3.3.0.jar to the plugins directory under Eclipse.
    4. Copy the Jad.exe to the bin file under the JDK installation directory (easy to put together with common commands such as Java,javac, you can use the Jad command directly from the console).
    5. Then, restart Eclipse, find Eclipse->window->preferences->java, and you will find that there will be more than the original one Jadclipse option, click, will appear as follows:

Enter the location where you just placed jad.exe in path to Decompiler, or specify a directory for the temporary files. Of course, there are some sub-options under Jadclipse,

such as Debug,directives, according to the default configuration can be.

6. After the basic configuration is complete, we can check the default open mode of class file, Eclipse->window->preferences->general->editors->file Associations, we can see:

We can see that the class file is opened in two ways, Jadclipse and Eclipse comes with the class files Viewer, and Jadclipse is the default.

7. Complete configuration, select the class you want to view, press F3 to view the source code.

The deserialized source file has one line at the top:

/*jadclipse*///decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov. The description is decompile by Jad.

Note: After this setting, you double-click some class files still cannot decompile, this is because these class files have no additional source code, in order to resolve all class files, but also to do the following settings:

Eclipse->window->preferences->general->editors->file Associations

Under File Type, select *.class without source, then click Add under Associated editors, add the Jadclipse class file Viewer, and select the Jadclipse class file Viewer and click the Default button on the right to set the Jadclipse Class File Viewer to *.class without source.

Ps:

MyEclipse Install the Jadclipse plugin and copy the Net.sf.jadclipse_3.3.0.jar directly to a similar

D:\dev\MyEclipse\MyEclipse 10\dropins in the directory.

Documents and JAD.exe Baidu Network disk: Http://pan.baidu.com/s/1o8A5xCA

Java Anti-compilation tool jad and plugin jadclipse configuration tutorial

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.