Original text: http://blog.csdn.net/u011514810/article/details/53196371
————————————————————————————————-
As a rookie, it is very important to check the Java source code. It’s very convenient to view the source code of a class in eclipse. Directly press and hold the CTRL + mouse click class or method, then the source code of this class or method will appear. However, before that, you need to import the source code src.zip into eclipse. This source code src.zip does not need to be downloaded. As long as you install JDK, there will be src.zip in the directory where JDK is installed. There is no need to unzip it. Let’s see how to import the source code into eclipse
1. In the eclipse interface, click window — preferences — Java — installed jres
2. Select d: Java. Lib. RT. Jar, and then select source attachment
3. Select external location, click external file, browse the directory where JDK is installed, find src.zip, click OK and finish
Similar Posts:
- [Solved] Maven Error: No compiler is provided in this environment. Perhaps you are running on a JRE rather t…
- Eclipse Unable to install breakpoint in XXX [How to Solve]
- Dubbo learning — import eclipse exception unbound classpath container (2)
- Solve the error reported by eclipse project: unbound classpath container
- Eclipse python Unresolved import Error [How to Solve]
- java.lang.UnsupportedClassVersionError: Bad version number in .class file
- Error filterStart error resolution
- Python learning notes – Import utils error
- Warning: The serializable class * does not declare a static final serialVersionUID
- An error is reported after eclipse changes the JDK version