Eclipse无法查看源代码,显示Source not found,The JAR file xxx has no source attachment

Eclipse界面如下: 解决方法: Window---->Preferences 点击左侧 Java---->Installed JREs,点击右侧 Edit 点击 rt.jar(我这里是D:\Java\jre1.8.0_191\lib\rt.jar)---->点击下面的Source attachment(none) ---->点击右侧的Source attachment… 选择External
相关文章
相关标签/搜索