Reputation: 873
In eclipse I have an error related to my build path.
The error:
Project 'XX' is missing required library: 'middlegen-2.1.jar'
But the library is deleted before the build path configuration.
Is there perhaps a problem with cache or so?
Has anyone an idea why eclipse say that the library is required even though the library was deleted before the build path configuration.
With Best
Upvotes: 14
Views: 82438
Reputation: 853
This error is due to probably either missing required library or due to caching of eclipse
Solution 1
Solution 2
1.Try cleaning the project's using Menu->Project->clean (select the projects and clean it)
Solution 3
If your build path is very clear i.e no Red "x" marks then the error could be of eclipse caching.Then do below step
1.Right click on the project choose "close project". 2.Once the project is closed again right click on the project select open project This solution will clear the eclipse cache.
Hope any of the solution should resolve your problem.
Upvotes: 13
Reputation: 1033
I had this same problem, but the steps above didn't help. I did a search through files in the Eclipse workspace and found files named .markers
and .markers.snap
that contained the bad path names under the folders in .projects
that were named for the projects that weren't building. I exited Eclipse, backed up those files, removed them from the Eclipse workspace, and restarted Eclipse. The problem went away.
Upvotes: 7
Reputation: 13574
I guess you've deleted the library from a directory, but you've not updated the project Build Path. Right click on the project name, select "Properties", go to "Java Build Path", choose the "Libraries" tab, and see that your library is not in the list. If it's still in that list, remove it with the "Remove" button.
Upvotes: 25
Reputation: 8874
Your project configuration includes a reference to middlegen-2.1.jar on the build path. That file is missing. You can either a) put the file there, b) change the configuration to point to the file in another location, or c) remove the reference, cross your fingers, and hope the project compiles and runs without the jar.
I don't know what "the library was deleted soon" means, so if that is important to your question, you might want to rephrase.
Upvotes: 0