Decompile the class file in eclipse

Source: Internet
Author: User

In eclipse, how to view the content of the class file is of course a decompilation tool:

Reference: http://nihaiou.blog.51cto.com/790190/274666

During learning, you need to decompile the Java class file. My development tool is Windows XP + eclipse3.2.2 + myeclipse. I found the Jad decompilation tool and some useful installation steps on the Internet. The installation process is recorded below. 1. Download 1. Download the Jad tool. It is not downloaded on the official website and can be downloaded on csdn. 2. Download net. SF. jadclipse_3.3.0.jar. Ii. Installation

1. Install the Jad tool. After the download is decompressed, copy the unzipped jad.exe file to the directory % java_home % \ bin (you can place jad.exe in any location, just remember its storage path and use it below ).

2. Install the plug-in. For details about how to install plug-ins in eclipse, see eclipse usage tips (3) install plug-ins in eclipse.

Copy net. SF. jadclipse_3.3.0.jar to the % eclipse_home % \ plugins directory.

Copy the Link Method to the following: Create D: \ myplugins \ net. SF. jadclipse_3.3.0 \ eclipse \ plugins directory structure, put jadclipse_3.2.4.jar under the Plugins directory (Note: D: \ myplugins is a directory dedicated to plug-ins for you ). Create a net. SF. jadclipse_3.3.0.link file under the % eclipse_home % \ links directory ). The file contains Path = D:/myplugins/net. SF. jadclipse_3.3.0.


1. Download the plug-in:
Jadclips plug-in Website: http://jadclipse.sourceforge.net/


1.) how to install the plug-in:
Method 1: Copy jadclipse_3.1.0.jar to the % eclipse_home % \ plugins directory.
Method 2: Install using link, for example, in the c: \ Program Files \ myeclipse 6.5 \ plugins-link \ directory,
Create three new folders: jadclipse3.1.0 \ eclipse \ plugins, and put the jar under plugins. Then in the directory
C: \ Program Files \ myeclipse 6.5 \ eclipse \ links file: jadclipse3.1.0.link,
Content: Path = C:/program files/myeclipse 6.5/plugins-link/jadclipse3.1.0, start eclipse,
Open Window-> preferences-> JAVA-> jadclipse. If jadclipse is not found, check whether the installed version of the plug-in corresponds to the installed eclipse version.


2) set it to the default open mode of the class file
Eclipse automatically sets jadclipse class file viewer to the default open mode of class files. If no default value exists, you can choose windows> perference-in eclipse-

> In general-> editors-> File Associations, change "*. Class" to "jadclipse class File Viewer" by default ". Double-click

*. Class file, which is automatically decompiled By eclipse.


3.when using jadclipse, you must add the jad.exe program. If there is only a plug-in and no Jad, the program cannot be decompiled successfully and the following error is displayed.

We also need to install Jad.


2. Download The Jad decompilation tool:
There is a jad.exe behind the http://www.joymo.cn/Html/kfzx/J2me_114_1043.html.


3.decompress the downloaded package and copy jad.exe to your % java_home % \ bin directory. The advantage of doing so is convenience. Set it in eclipse and select "window "-

"Preference"-"Java"-"jadclipse", enter the absolute path of jad.exe in path to decompiler. This is done to ensure the decompilation effect.


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.