Eclipse和Java - 源未找到 [英] Eclipse and Java - source not found

查看:157
本文介绍了Eclipse和Java - 源未找到的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在尝试在Eclipse中调试一个包含三个类的包时,会发现源未找到错误,并显示编辑源查找路径按钮。

While trying to debug a package in Eclipse with three classes in I get a "source not found" error and a "Edit Source Lookup Path" button is displayed....

我不明白,当这个错误发生和如何解决它 - 任何想法..?

I do not understand while this errors occurs and how to fix it - any ideas..?

我使用的IDE是Eclipse Java EE IDE for Web开发人员 - Java 1.6。

The IDE I am using is Eclipse Java EE IDE for Web Developers - Java 1.6.

关注Ian

推荐答案

因为您正在调试不包含源信息的类路径中的jar。或者,您的代码正在引用其他Eclipse项目的文物,而不是项目本身。

This usually happens because you're debugging into jars on your classpath that contain no source information. Alternatively, your code is referencing the artefacts of other Eclipse projects, and not the projects themselves.

要解决,请在添加项目/源代码时添加编辑源查找路径对话框。

To solve, add the projects / source jars when presented with the Edit Source Lookup Path dialogue.

希望有帮助!

这篇关于Eclipse和Java - 源未找到的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆