天天看点

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

Eclipse: class file editor: source not found…

最近在使用eclipse查看源码时提示Eclipse: class file editor: source not found

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

此时 我们进行以下操作

1、点击按钮Attach Source…或者Change Attached Source…

2、在弹出的提示框中选择External location,然后点击右侧的External(选择路径)

3、然后选择jdk安装目录下的src.zip(src.zip是源代码的压缩文件)

本人安装在C盘(每个人安装目录可能不同,要选择自己的安装路径)

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

4、点击确认

5、刷新eclipse就可以正常显示了

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