Install the Java decompilation plug-in eclipse 4.2

Source: Internet
Author: User

After installing the decompilation plug-in eclipse, you can directly view the Java source code corresponding to the. Class file.

The Decompilation plug-ins include jdeclipse and jadeclipse.

(1) jdeclipse

Http://www.djjavadecompiler.com/

(2) Jad + jadeclipse

Download jadeclipse: http://sourceforge.net/projects/jadclipse/files/

Download net. SF. jadclipse_3.0.jar, copy it to the plugin folder in the eclipse main directory, and then restart eclipse.

Download jad.exe: http://www.varaneckas.com/jad/ (address found from Wikipedia)

After the download is complete, copy to any path. For example, copy to % java_home % \ bin, that is, D: \ Program.
Files \ Java \ jdk1.6.0 _ 33 \ bin \ jad.exe

Then:

Window-> preferences-> JAVA-> jadclipse, fill in the full path name of The Decompilation tool Jad in path to decompiler, that is, D: \ Program
Files \ Java \ jdk1.6.0 _ 33 \ bin \ jad.exe.

Then:

Windows> perference> General
-> Editors-> file associations,

Select *. Class under file type, and then
Select jadclipse class File Viewer under associated editors, and click the default button on the right to set it as the default editor.

 
Note,
After this setting, you can double-click some. class files but cannot decompile them. This is because these class files do not have additional source code. to parse all the class files, you need to make the following settings:

In File
Select*. Class without source, (If no options are available, you can click Add on the right to add
*. Class without source
Type), and then click Add on the right under associated editors to add jadclipse
Class File Viewer, select jadclipse class file viewer, and click the default button on the right to set jadclipse class file viewer*. Class
Without source
The Default Editor.

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.