1. Download Jad and Jadeclipse
Jad is a Java anti-compilation tool that is executed with the command line, and usually the same as the Java,javac command that comes with the JDK. However, because the console is running, it is not very convenient to use. But fortunately there is an Eclipse plug-in jadclipse, which makes it easy to view the source code of a class file in Eclipse.
2. Copy the Net.sf.jadclipse_3.3.0.jar to the plugins directory under Eclipse
3. Copy the Jad.exe to the bin file under the JDK installation directory
(easy to put together with common commands such as Java,javac, you can use the Jad command directly from the console)
4. Restart Eclipse, find Eclipse->window->preferences->java, you will find a more than the original Jadclipse option, click, will appear
Path to Decompiler: Copy the Jad.exe to the bin directory of the JDK just now
Directory for temporary files: temporary file, set a path
Check Reuse Code Buffer
5. Set the default open mode for class files
Eclipse->window->preferences->general->editors->file Associations
6. Complete configuration
You can then open the. class file in Eclipse
If you open the. Class directly, you can open the. class file by holding down CTRL and clicking it on a method called. Class.
Eclipse installs the anti-compilation plugin Jadclipse