eclipse error: says build path is incomplete

南楼画角 提交于 2019-12-24 03:33:45

问题


Description :

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.

It is not an android code, also do I need to post some code too. I think code is irrelevant for this error

Tried this solution: Right click on project -> Properties -> Java Build Path (From Left List) -> Libraries (Tab) -> Add Library (Button on right) -> JRE System Library -> Next -> Workspace default JRE -> Finish

given in similar question on stackoverflow for Android Project - Didn't work.


回答1:


It says it all: there's a missing library in your class path. Try downloading the jar from here and add it to your class path. If you're using maven, gradle, etc., even simpler, just use the code provided in the previous link for each tool.




回答2:


It may have several reasons. Simplest of the solution is that

  • Find out the .m2 location for your eclipse maven (where jars are resolved) for mine case it is under C:\Users\Awais Haider.m2\repository (issue lies here).

  • Delete the repository section, once there is no other solution.

  • Force update maven and its snapshot and clean the project.
  • Once the updates and download of maven dependencies are completed, the error will be resolved.

Thanks.



来源:https://stackoverflow.com/questions/31213002/eclipse-error-says-build-path-is-incomplete

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!