Eclipse Class Decompiler --- Java decompilation plug-in, eclipse decompilation class

Source: Internet
Author: User

Eclipse Class Decompiler --- Java decompilation plug-in, eclipse decompilation class

If it is reprinted, indicate the source at http://www.cnblogs.com/last_hunter/p/5626779.html. thank you!

Bytes ------------------------------------------------------------------------------------

1. Java decompilation plug-ins Jad and JD-Core

Source: http://blog.csdn.net/silentmuh/article/details/46787625

Source: http://blog.csdn.net/liuquan0071/article/details/51004724

Eclipse Class Decompiler integrates two of the best Java decompilation tools, Jad and JD-Core, and seamlessly integrates with Eclipse Class Viewer. This plug-in allows you to conveniently view the Class Library source code, and Debug using this plug-in.
Eclipse Class Decompiler plug-in Update site:Http://feeling.sourceforge.net/update

Offline Installation Package 1: http://feeling.sourceforge.net/downloads/org.sf.feeling.decompiler_1.0.3.zip
Offline Installation Package II: http://www.blogjava.net/Files/cnfree/org.sf.feeling.decompiler_1.0.3.zip

This plug-in only supports Windows, Linux, and Macosx operating systems.

Directly use Eclipse for updates. It supports Eclipse 3.xand 4.x. you can directly check the update plug-in without relying on any other plug-ins.
Many may ask if there is any English version. In fact, when you create an Eclipse shortcut and add the-nl en_US parameter, all plug-ins will be automatically displayed in English, including the Eclipse Class Decompiler plug-in.

Online installation address http://feeling.sourceforge.net/update

On the preference page of Eclipse Class Decompiler, you can select the default anti-compiler tool and perform basic anti-compiler settings. The default decompilation tool is JD-Core, and JD-Core is more advanced. It supports New syntaxes only after generic, Enum, annotation, and other JDK1.5.

Preference configuration options:
1. Reuse cache code: Only decompilation is performed once. The decompilation code of the cache is displayed each time this type of file is opened.
2. ignore existing source code: If not selected, check whether the Class file is bound to the Java source code. If it is already bound, the Java source code is displayed. If it is not bound, decompile the Class file. If this option is selected, the bound Java source code is ignored and The Decompilation result is displayed.
3. Show the decompilation Report: displays the data report and exception information generated after decompilation.
4. Use the Eclipse code formatting tool: Use the Eclipse formatting tool to re-format The Decompilation result. This operation takes some time to decompile the entire Jar package.
5. sort by Eclipse members: Use Eclipse member sorting to re-format The Decompilation results. This operation consumes a lot of time when the entire Jar package is decompiled.
6. output the original line number information in the form of annotation: if the Class file contains the original line number information, the line number information is printed to The Decompilation result in the form of annotation.
7. align the source code with the line number for debugging: If this item is selected, the plug-in uses the AST tool to analyze the decompilation results and adjust the code sequence based on the line number information to facilitate single-step debugging tracking during the Debug process.
8. set the Class decompilation Viewer as the default Class file editor. If this option is selected by default, the built-in Class Viewer of Eclipse is ignored. After Eclipse is started, the Class Viewer provided by this plug-in is used by default to open the Class file.
The plug-in provides the system menu and toolbar. When the class decompilation viewer provided by the plug-in is opened, the menu and toolbar options are activated to conveniently configure the preferences and switch to the decompilation tool to re-compile, and export the decompilation results.

The context menu of the class decompilation viewer contains all the options of the context menu of the Eclipse built-in class viewer, and adds a menu item "Export decompilation source code.

Open the Class file in the project path. If you set the Class decompilation viewer as the default viewer, double-click the Class file. If it is not set as the default viewer, you can right-click it to view it.

The Eclipse Class Decompiler plug-in also provides decompilation of the entire Jar file or Java package. This operation supports Package Explorer to display the layout of packages. For tile layout, the exported Source Code does not contain sub-packages. For hierarchical layout, export the Selected Package and all its sub-packages.

Debug debugging: You can select an alignment line number in the preference to perform one-step tracing debugging. This is consistent with debugging operations when the common source code is included. You can also set breakpoints for tracking.

 

2. decompilation plug-in jadclipse

Source: http://www.cnblogs.com/java-class/p/4279261.html

Source: http://jingyan.baidu.com/article/3f16e003c857082590c1036f.html

  

6. Set*. Class without sourceTo open the File type, click Add in the Associate editors column to Add JadClipse Class File Viewer and set it to default,

  

OK. You can open the class file and view it.

-------------------------------------- Functions and associations of plugin and feature in Eclipse-------------------------------

[What is the basic structure of plug-in?]
Each plug-in is packaged with a directory, and the directory name is also exquisite. For example, the name of plug-in isEdu. sjtu. bbs. eclipseThe version is 1.0.0. The directory name is edu. sjtu. bbs. eclipse_1.0.0.
Open a plug-in directory and you will find that there is always a file namedPlugin. xmL. This file is very important for plugin. It defines the runtime parameters of plugin. Without this file, plugin cannot be started,
Just like if your refrigerator does not know whether it is 110V or 220V, You do not dare to plug it into the socket, so there is always a description, which is plugin. xml.

[What is feature?]
Feature is a functional component. It does not have a library to run. It is just a way for eclipse to manage plugins.For example, if you have installed an electric lamp, you must have a switch to control it. For example, there is a switch to control the lighting in the lobby, and the lights in the bedroom are
There is also a switch control, which is used to control the light on and off respectively. Similarly, the function component is used to control whether the plug-in is started or not. The eclipse update perspective can set each function
Enable or disable a widget, so you can disable it to disable it. this has a benefit. For example, you have installed many plug-ins in eclipse, but the more you install, the more you load, and the slower the startup.
Therefore, we canFunction components are considered as plug-ins or plug-ins.,Used to control the agent status.If there is a plug-in the plugins directory that is not encapsulated by any functional component, I call it "Wild plug-in", that is, eclipse
Start, it will certainly start, it is equivalent to no switch, the power supply has been connected the same.

3. Java Decompiler

Connection: http://jd.benow.ca/Decompiler introduction and source code.

 

 

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.