当关联源代码时提示:
The JAR file c:/program files/java/jre6/lib/rt.jar has no source attachment.
You can attach the source by clicking attach source below:
在C:\Program Files\Java\jdk1.6.0_30目录下有一个src.zip 。这个就是所有的java API库的源代码。
点击Attach Source ----> External File 找到这个文件。
这样就可以参考源代码了。*^_^*