图解eclipse 查看原始类出现The jar file rt.jar has no source attachment
2016-11-17 10:24
771 查看
作为一名菜鸟,查看java 源码非常重要。而在eclipse中查看一个类的源码是非常方便的,直接按住 ctrl + 鼠标点击的那个类或方法,那么这个类或方法的源码就会出现。不过在此之前,需要先在eclipse中导入源码 src.zip. 这个源码src.zip不需要下载,只要你安装了jdk,那么在jdk安装的目录下就会有src.zip,无需解压,下面看一下怎么把源码导入eclipse中。
1.进入eclipse界面,依次点击 Window -- Preferences -- Java -- Installed JREs
2.选中 D:\java\lib\rt.jar ,然后选择 Source Attachment
3.选择 External location ,点击 External File 浏览安装jdk的目录,找到src.zip,一次点击ok,finish 即可。
1.进入eclipse界面,依次点击 Window -- Preferences -- Java -- Installed JREs
2.选中 D:\java\lib\rt.jar ,然后选择 Source Attachment
3.选择 External location ,点击 External File 浏览安装jdk的目录,找到src.zip,一次点击ok,finish 即可。
相关文章推荐
- [转]图解eclipse 查看原始类出现The jar file rt.jar has no source attachment
- eclipse 查看原始类出现The jar file rt.jar has no source attachment解决方法
- eclipse 查看原始类出现The jar file rt.jar has no source attachment解决方法
- eclipse 查看原始类出现The jar file rt.jar has no source attachment解决方法
- 【图】解eclipse 查看原始类出现The jar file rt.jar has no source attachment
- eclipse 查看原始类出现The jar file rt.jar has no source attachment解决方法
- 图解myEclipse 查看原始类出现The jar file rt.jar has no source attachment
- 3、eclipse 查看原始类出现The jar file rt.jar has no source attachment解决方法
- 【转】eclipse 查看原始类出现The jar file rt.jar has no source attachment解决方法
- eclipse 查看原始类出现The jar file rt.jar has no source attachment解决方法
- eclipse 查看原始类出现The jar file rt.jar has no source attachment解决方法
- 解决eclipse查看源代码出现The jar file rt.jar has no source attachment问题的方法
- Eclipse 查看源码出现 The jar file rt.jar has no source attachment 解决方法
- eclipse查看不了源码(the jar file has no source attachment)解决方法
- 解决eclipse中查看android工程代码出现android.jar has no source attachment
- Myeclipse出现the jar file xxx.jar has no source attachment. 问题
- 解决eclipse中查看android工程代码出现android.jar has no source attachment
- 解决eclipse中查看android工程代码出现android.jar has no source attachment
- 解决eclipse中查看android工程代码出现android.jar has no source attachment
- 【图】解类似MyEclipse查看原始类出现”The JAR file dom4j-1.6.1jar has no source attachment”的问题