当通过引用src.zip想看JDK标准类的源码时、有时会报如下错误:
“an error occurred while opening the source attachment form ”
“jre\lib\rt.jar is not on its project’s build path”
打开项目的 properties.
然后选择 Java Build Path
然后先移除 JRE System Library 一次
再加上Library JRE System Library就行,
最后一定要重新启动eclipse 就可以了。一定要重启!!!
关于eclipse查看源码引入src.zip报错:jre\lib\rt.jar is not on its project's build path 报错问题
最新推荐文章于 2023-06-09 15:44:13 发布