When using eclipse, it is often difficult to find the source file of the corresponding class during debugging errors. How can this problem be solved ??
First download the required jar and exe tools.
Can find from the official, can also download from this link: http://download.csdn.net/detail/spring292713/4465499 this is I used !! It is said that it is only applicable to eclipse3.2 and later versions. It is said that it can decompile more than 70% of the encrypted class files.
Eclipse configuration steps:
1. Copy jad.exe to the bin under the JDK installation project. For example, copy it to c: \ Program Files \ Java \ jdk1.6.0 _ 25 \ bin.
2. Copy jadclipse_3.3.0.jar to the Plugins directory under eclipse.
3. Restart eclipse to perform relevant settings. You need to change the settings in two places.
3.1 after copying jadclipse_3.3.0.jar to eclipse and restarting eclipse,
Choose *. Class from WINDOW> preferences> General> editors> File Associations. The associatd editors below will have a jadclipse class ......
Select and click default. Click OK .. For example:
3.2 after copying jadclipse_3.3.0.jar to eclipse and restarting eclipse,
In window-> preferences-> JAVA, add a jadclipse. Click set jadclipse path to decompiler and set it to jad.exe under your JDK. For example, if my file is C: \ Program Files \ Java \ jdk1.6.0 _ 25 \ bin \ jad.exe
You do not need to change the value of directory for temporary file. For example:
Configuration steps in myeclipse:(My Name Is myeclipse9.0. I have not tested other versions !!)
Copy jadclipse_3.3.0.jarIn myeclipse 9 \ dropins; other steps are basically the same as in eclipse.
After configuration, double-click the class file in the jar file you want to view the source code. The decompiled file is not exactly the same as the original file, but you should pay attention to it.
In my uploaded filesClassdecompilation .exe is also included. Run classdecompilation. EXE and drag the class file to decompilation.
Hope to help you !!