Eclipse无法查看源码(Source not found)的解决方法

来源:互联网 发布:访问服务器8080端口 编辑:程序博客网 时间:2024/05/18 03:45

1、打开Eclipse,依次进入:Window→perferencesjavaInstalled JREs,或者直接搜索Installed JREs。


2、选择jre1.8.0_144(default)后,点击Edit,进入Edit JRE界面,展开rt.jar,找到Source attachment。


3、选择 Source Attachment,在External location的Path选择JDK的路径,定位src.zip即可。


阅读全文
0 0