eclipse error: says build path is incomplete

eclipse error: says build path is incomplete

描述:

Type The project was not built since its build path is incomplete.

Cannot find the class file for weka.core.Instance.

Fix the build path then try building this project.

它不是 android 代码,我也需要 post 一些代码。我认为代码与此错误无关

试过这个解决方案: 右键单击项目 -> Properties -> Java Build Path (From Left List) -> Libraries (Tab) -> Add Library (Button on right) -> JRE System Library -> Next -> Workspace default JRE - > 完成

在 Android 项目的 Whosebug 上的类似问题中给出 - 没有用。

它说明了一切:您的 class 路径中缺少一个库。尝试从 here 下载 jar 并将其添加到您的 class 路径。如果你用的是maven,gradle等,更简单,每个工具都使用前面link中提供的代码即可

可能有几个原因。最简单的解决方案是

  • 找出你的 Eclipse Maven 的 .m2 位置(jar 被解析)对于我的情况它在 C:\Users\Awais Haider\.m2\repository 下(问题出在这里)。

  • 删除存储库部分,一旦没有其他解决方案。

  • 强制更新 maven 及其快照并清理项目。
  • maven依赖的更新和下载完成后,错误将得到解决。