Java Decompiler "Java Anti-compilation": The Development of the Anti-compilation tool, you can easily view the *.class file source code. Here are a few ways to view the source code: Tools & Plugins
1, Jd-gui
Jd-gui is a graphical interface tool that displays Java source code *.class files. Can be downloaded here: jd-gui-download
Once downloaded, open the tool and drag the jar package directly to the display window to view the source code.
Example: Through the Jd-gui.exe tool to view the Xutils-2.6.14.jar package source code:
However, general development is using the IDE (Integrated Development Environment integrated development environment) such as Eclipse,android Studio. IDE General plug-ins are very rich, convenient to improve development efficiency. If you have an IDE or a graphical interface tool to view the jar package without plug-ins, it is relatively drunk, because I did not know with the plug-in, drunk a long time to use!! No culture, it's horrible! Interpolation refers to calculate: Later to "more discussion, more contact, increase the breadth of knowledge!" More research, more fine learning, increase the depth of knowledge! ” 。 The following is an overview of installing the plugin under Eclipse,android Studio and viewing the jar package *.class file.
2, Jd-eclipse
(1) Download the Jd-eclipse plugin. After downloading, open Eclipse, select: Help-->install New software...-->add--archive ... To do this, follow these steps:
After installation, restart Eclipse and you should be able to view the code for the *.class file.
ADD and Archive ...
Select the plug-in you want to install:
once selected, step next, then restart Eclipse.
The effect is as follows:
3, Jd-intellij
Jd-intellij is Intellij idea plug-in, installed this plugin, you can easily view the jar package source code. Download Jd-intellij
Take Android Studio For example: it can be installed offline or online.
(1), offline installation steps:
A, download jd-intellij-0.6.zip ;
b, Android studio file->settings. ->plugins-->install plugin from disk. Import the Downloaded plugin
C. Restart Android Studio
(2), on-line installation
Android Studio File->settings. ->plugins-->browse Repositores. Search Jd-intellij
After you restart Studio, look at the source code for the jar package's class file:
Resources:
1. Java Decompiler
2, plug-in download & instructions, there are many plugins, welcome to download trial
3. Eclipse Install Jd-eclipse Plugin
4, recommend a few useful tools
There is not enough, a lot of corrections!
How to view Java *.class File source code through the Anti-compilation tool and Plugin