Original: http://blog.csdn.net/u011514810/article/details/53196371
-------------------------------------------------------------------------------------------------
As a rookie, it is very important to view Java source code. In eclipse, it is very convenient to view the source code of a class, directly holding down the CTRL + mouse click on the class or method, then this class or method of the source code will appear. Before you do this, you need to import the source Src.zip in eclipse first. This source src.zip do not need to download, as long as you install the JDK, then the JDK installed in the directory will have Src.zip, no decompression, see below How to import the source code into eclipse.
1. Go to 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 to browse to the directory where you installed the JDK, find Src.zip, and click Ok,finish once.
[Go] diagram Eclipse View original class appears the jar file Rt.jar has no source attachment