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 settings. 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. Reuse the Cache code: it will only be 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 the Eclipse member sort to reformat the results of the disassembly and to decompile the entire jar package, 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 is ignored, and each time eclipse is launched, 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
myeclipse2014 How to add a source anti-compilation tool plug-in