在Debug模式下运行项目,可能会遇到Source not found 问题,如下图:

Debug模式下Source not found问题及解决

这是可能找不到src.zip包,具体解决如下:

1.打开Eclipse,点击Windows。
在Windows选项下,选择“perferences”。
在“perferences”窗口下,选择java->Incelled jres 。

Debug模式下Source not found问题及解决

2.

点击“jre6”,点击右侧“ Edit”。

3.在edit jre对话框中,找到以“rt.jar”结尾的文件。
点击展开 选择“ Source Attachment”。点击。(这是我弄好了的样子,没弄之前source attach显示为none)

4.在 “Source Attachment”对话框下,选择”External location“。路径为安装java JDK时的路径,关键是在此路径下,找到src.zip,就行了。
Debug模式下Source not found问题及解决

相关文章:

  • 2021-11-24
  • 2021-04-23
  • 2021-11-29
  • 2021-09-21
  • 2022-12-23
  • 2021-11-12
猜你喜欢
  • 2022-12-23
  • 2021-09-18
  • 2021-10-15
  • 2021-08-08
  • 2021-11-21
相关资源
相似解决方案