Q: Why is it necessary to configure the Anti-compilation tool in the development environment?
A: When a third-party Jar project is referenced, an exception is suddenly reported on a row of a class in the jar package. when we want to look at the code for this class file, there are often scenarios like the one shown:
God, my heart is broken.
To find the source code? Yes, but it's a waste of time (except for MAVEN projects, the introduction of a dependency jar in Pom.xml will even download the same-origin file).
So, you can view the contents of a class file at any time by configuring the Anti-compilation tool in Eclipse.
The following take Jadclipse as an example, tell about the configuration process, such as have ideas, not hesitate to enlighten, thank you!
1. Download Net.sf.jadclipse_3.3.0.jar Address: http://jadclipse.sourceforge.net/
2. Copy the Net.sf.jadclipse_3.3.0.jar (function: If not installed, the 6th step is not found jadclipse) into the Eclipse installation directory under Plugins, as shown in
3. Jad.exe Download, Address: Http://www.javadecompilers.com/jad
4. Unzip the package to the Eclipse installation directory new folder Jad (you can also customize the directory) as shown in
5. Enter the Jad directory and create a new jadtemp file in this directory to hold the cache folder for the Jad.exe execution program, as shown in
6. Specify the Jad.exe path in Eclipse, and the path to the cache folder Jadtemp. In Eclipse, click the top menu windows->preferences, enter Jad in the search box, as shown in
7. Specify the default open mode for class files
8. Specify the default open mode for class files without source code
9. Test if it works
Done!
Ps:1. If it does not take effect, restart Eclipse and there is a problem with the configuration.
The 2.Jad Anti-compilation tool occasionally appears to parse the class file, which is also unavoidable.
3. If the wall, please find another address to download.
How to configure the Anti-compilation tool in Eclipse Jadclipse