Eclipse java 关联jdk源代码

来源:互联网 发布:linux下chrome打不开 编辑:程序博客网 时间:2024/05/17 08:07

当关联源代码时提示:

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  找到这个文件。

这样就可以参考源代码了。*^_^*

原创粉丝点击