Eclipse: class file editor source not found 问题解决方案

Eclipse: class file editor: source not found…
最近在使用eclipse查看源码时提示Eclipse: class file editor: source not found
image.png
进行以下操作
1、点击按钮Attach Source…或者Change Attached Source…
2、在弹出的提示框中选择External location,然后点击右侧的External file(选择路径)
3、然后选择jdk安装目录下的src.zip(src.zip是源代码的压缩文件)
image.png
4、点击确认
5、刷新eclipse就可以正常显示了

猜你喜欢

转载自blog.csdn.net/hansome_hong/article/details/124712605