Eclipse4.5Mars installs JAD decompilation plug-in

Step 1: Open the software installation in eclipse help

Step 2: Add a site: http://feeling.sourceforge.net/update, as shown below:

Step 3: Select Eclipse Class Decompiler, Next, Next

Step 4: Accept License, Install! Thumbs up!

Step 5: Restart eclipse!

Step 6: Configure Jad. The picture below shows the preference page of Eclipse Class Decompiler. You can select the default decompiler tool and perform the basic settings of the decompiler. The default decompilation tool is JD-Core. JD-Core is more advanced and supports new syntaxes such as generics, Enum, and annotations that are only available after JDK1.5.

 

Preferences configuration options:

1. Reuse the cached code: only decompile once, and every time you open the file in the future, the cached decompiled code will be displayed.

2. Ignore the existing source code: If it is not selected, check whether the Java source code has been bound to the Class file. If it is bound, the Java source code will be displayed. If it is not bound, the Class file will be decompiled. If this option is selected, the bound Java source code will be ignored and the decompiled result will be displayed.

3. Display the decompiler report: Display the data report and exception information generated by the decompiler after decompilation.

4. Use the Eclipse code formatting tool: Use the Eclipse formatting tool to reformat the decompilation result. When decompiling the entire Jar package, this operation will consume some time.

5. Use Eclipse member sorting: Use Eclipse member sorting to reformat the decompilation result. When decompiling the entire Jar package, this operation will consume a lot of time.

6. Output the original line number information in the form of comments: If the Class file contains the original line number information, the line number information will be printed into the decompilation result in the form of comments.

7. Align source code according to line number to facilitate debugging: If this option is selected, the plugin will use AST tool to analyze the decompilation results, and adjust the code sequence according to the line number information to facilitate single-step tracking and debugging during the Debug process.

8.设置类反编译查看器作为缺省的类文件编辑器:默认为选中,将忽略Eclipse自带的Class Viewer,每次Eclipse启动后,默认使用本插件提供的类查看器打开Class文件。

 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326876188&siteId=291194637