Java anti-compile plugin under Eclipse no longer difficult to view source code

Source: Internet
Author: User

Java Anti-compilation plugin under Eclipse: Eclipse Class Decompiler, which integrates the best 2 Java decompile tools, Jad and Jd-core, and integrates seamlessly with the Eclipse class viewer It is convenient to use this plugin to view the source code of the class library, and use this plugin for debug debugging.

Reprinted from: http://bbs.csdn.net/topics/390263414

Eclipse Class decompiler plugin: http://download.csdn.net/detail/ibm_hoojo/5250263

After downloading, unzip can see the following directory, copy all the files pasted into your eclipse or MyEclipse directory: D:\MyEclipse 6.5\myeclipse\eclipse, select Overwrite. Then restart Eclipse.  
 

for the Eclipse Class decompiler Preferences page, you can select the default anti-compiler tool and perform the basic anti-compiler setup. The default anti-compilation tool is more advanced for Jd-core,jd-core, which supports new syntax such as generics, enums, annotations, and so on JDK1.5.  
 
Preferences configuration options:  
1. Reusing cache code: It is only recompiled once, and each time the class file is opened, the cached anti-compilation code is displayed.  
2. Ignore the existing source code: If unchecked, see if the class file is bound to the Java source, if it is bound, display the Java source code, if not bound, then decompile the class file. If checked, the bundled Java source code is ignored and the results of the decompile are displayed.  
3. Display the Anti-compiler report: Displays the data report and exception information generated by the anti-compiler after decompile.  
4. Use the Eclipse Code formatting tool: Use the Eclipse formatting tool to reformat the anti-compilation results, which can take some time to decompile the entire jar package.  
5. Use the Eclipse member sort: Use Eclipse member sort to reformat the results of the disassembly, and when the entire jar package is recompiled, this operation consumes a lot of time.  
6. Output the original line number information in an annotated manner: If the class file contains the original line number information, the line number information is printed to the anti-compilation results in a commented manner.  
7. Aligning code to facilitate debugging based on line number: If selected, the plugin uses the AST tool to parse the results of the disassembly and adjust the order of the code according to the line number information to facilitate single-step tracking debugging during the debug process.  
8. Set the class anti-compilation viewer as the default class file editor: By default, the class viewer that comes with eclipse will be ignored, and each time eclipse launches, the class file is opened by default using the classes viewer provided by the plugin.

The plug-in provides a system menu, a toolbar that activates the menu and toolbar options when the plugin-provided class is turned on, and allows you to easily configure the preferences, toggle the Decompile tool to decompile, and export the anti-compilation results.  
 

The class anti-compilation Viewer right-click menu contains all the options for the eclipse's own class viewer right-click menu and adds an export Decompile source menu item.  


Open the project path under the class file, if you set the class anti-compilation viewer as the default viewer, directly double-click the class file, if not set as the default viewer, you can use the right-click menu to view.  

The Eclipse Class Decompiler plugin also provides anti-compilation of the entire JAR file or Java package. This operation supports the Package Explorer's action on the display layout of packages, and if it is a tiled mode layout, the exported source code does not contain child packages, and if it is a hierarchical mode layout, the selected package and all its child packages are exported.  
 

Debug Debug: Can be selected in the preferences of the hyphenation number of single-step tracking debugging, and ordinary containing the source code when the debugging operation is exactly the same, you can also set breakpoints to track.  

Reprint: http://bbs.csdn.net/topics/390263414

Java anti-compile plugin under Eclipse no longer difficult to view source code

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.