Configure the Java decompilation plug-in myeclipse or eclipse

Source: Internet
Author: User

When using eclipse, it is often difficult to find the source file of the corresponding class during debugging errors. How can this problem be solved ??

First download the required jar and exe tools.

Can find from the official, can also download from this link: http://download.csdn.net/detail/spring292713/4465499 this is I used !! It is said that it is only applicable to eclipse3.2 and later versions. It is said that it can decompile more than 70% of the encrypted class files.


Eclipse configuration steps:


1. Copy jad.exe to the bin under the JDK installation project. For example, copy it to c: \ Program Files \ Java \ jdk1.6.0 _ 25 \ bin.

2. Copy jadclipse_3.3.0.jar to the Plugins directory under eclipse.

3. Restart eclipse to perform relevant settings. You need to change the settings in two places.

3.1 after copying jadclipse_3.3.0.jar to eclipse and restarting eclipse,
Choose *. Class from WINDOW> preferences> General> editors> File Associations. The associatd editors below will have a jadclipse class ......
Select and click default. Click OK .. For example:


3.2 after copying jadclipse_3.3.0.jar to eclipse and restarting eclipse,
In window-> preferences-> JAVA, add a jadclipse. Click set jadclipse path to decompiler and set it to jad.exe under your JDK. For example, if my file is C: \ Program Files \ Java \ jdk1.6.0 _ 25 \ bin \ jad.exe
You do not need to change the value of directory for temporary file. For example:


Configuration steps in myeclipse:(My Name Is myeclipse9.0. I have not tested other versions !!)

Copy jadclipse_3.3.0.jarIn myeclipse 9 \ dropins; other steps are basically the same as in eclipse.


After configuration, double-click the class file in the jar file you want to view the source code. The decompiled file is not exactly the same as the original file, but you should pay attention to it.


In my uploaded filesClassdecompilation .exe is also included. Run classdecompilation. EXE and drag the class file to decompilation.

Hope to help you !!

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.