Reputation: 195
One of my projects in Eclipse has a red exclamation mark next to its name, which I believe indicates a problem with the build path. However, I have triple checked that the paths of all JARs I'm using are valid. In Build Path > Configure Build Path, none of the JARs have red X's next to them.
When I open the 'Problems' window, the only thing listed is "The project cannot be built until build path errors are resolved." This is not very specific, and I do not know how to find the root cause of this problem.
I have rebuilt and refreshed my project many times, which has not fixed the problem. What could be causing this?
(This is a standard eclipse project; I'm not using gradle or maven)
Upvotes: 0
Views: 467
Reputation: 147
Identify in your code if there is any error markings (those red squiggly lines). Looking at the import statements would be good.
java.util.list
) you have to add the JRE to the build path.You can see all your code probles in the marker view. Go to menubar->window->show view->other->marker
Upvotes: 0
Reputation: 269
1.Right CLick on your project, Choose Build Path > Configure Build Path 2.Select JRE System Library and click Edit. 3.Choose last Radiobutton option Workspace default JRE and click Finish. 4.Clean and build your project.
It may help.
Also check for targeted runtime if your project is web project. If any server is missing delete it and create new one
Upvotes: 2