当我们使用eclipse时,想要看一个类的详细信息时,经常会遇到以下界面:
eclipse中Source not found解决方法
问题产生的原因很简单,就是eclipse没有找到相关的源文件(.java)。我们只需要将源文件的位置告诉eclipse就可以了。具体操作见下:
1. 点击”Attach Source…”,弹出Source Attachment Configuration窗口。
eclipse中Source not found解决方法
2. 选择External location下的External File…
3. 找到相关的源文件:C:\Program Files\Java\jdk1.8.0_131。
eclipse中Source not found解决方法
4. 打开即可。点击OK框。完成。

注:这里的文件夹是你需要加载的文件的位置,并非固定的。

相关文章:

  • 2021-10-13
  • 2022-12-23
  • 2021-04-09
  • 2021-09-18
  • 2021-10-15
  • 2021-11-23
  • 2021-05-16
猜你喜欢
  • 2021-05-16
  • 2021-11-05
  • 2021-06-14
  • 2021-11-21
  • 2022-01-17
  • 2021-08-08
相关资源
相似解决方案