Reputation: 96391
The following red x suggests something is wrong.
Meanwhile
What would cause the red x and how can i remove it?
Upvotes: 3
Views: 10833
Reputation: 6179
Try looking in the problems view for a detailed breakdown of build problems and warnings:
There could be a whole range of problems related to your project without being specific to your source code. You might not have an expected jar on your build path - for example.
Upvotes: 7
Reputation: 424983
It could be a problem with the project itself. For example, you have a library defined in your build path and the library doesn't actually exist on disk.
Try right-click on project > Build Path > Configure build path > Libraries and look for problems there.
If you are not actually using any classes from the missing library, your project would still build, which would explain what you're seeing.
Upvotes: 2