Accepted answer

yeah, this happens sometimes for no apparent reason. you can go to the "problems"-tab (right next to console output) and see the error message, so maybe you can narrow it down that way.


right click on the project with errors, then in the sub-menus select: maven > updateproject >

and then:

  • select the checkbox for all the dependent projects
  • select force update of snapshots
  • click ok.

this worked for me..


try doing a rebuild. i've found that the red x's don't always disappear until a rebuild is done.


i've run into a similar problem many a time, what happens usually for me is that a java file will say it won't compile in the text editor but in the package explorer it will say it's compiling fine.

sometimes doing a 'rebuild' or 'clean-build' doesn't work, the files don't actually get built (one has to presume that eclipse thinks the files it has are up to date) and when this happens i usually open up the java build path and just move one of my dependencies down/up the pecking order. this forces eclipse to do a rebuild of everything and it always seems to work.

if you're still having problems try copying the project and seeing if you get the same behaviour and at a last ditch attempt post a bug for eclipse, it may take a while for them to fix but at least you know that you're being heard.


to add to the previous answer, an extreme way of "cleaning" your project is to delete it (that is deleting its reference from the workspace, not deleting the actual files), and then re-import it.
sometimes, it helps...


findbugs also puts a red-x against files/packages to indicate static code analysis errors.


i have run through this. my case was more involved. the project was packaged fine from maven command line.

couple of things i made. 1. one class has many imports that confused eclipse. cleaning them fixed part of the problem 2. one case was about a setter, pressing f3 navigating to that setter although eclipse complained it is not there. so i simply retyped it and it worked fine (even for all other setters)

i am still struggling with implicit super constructor item() is undefined for default constructor. must define an explicit constructor"


i also experience those misterious error-symbols on packages from time to time. a way to get rid of them that works for me is to effectively remove the jre system library from java build path and add it back again.


my solution that finally worked was to clean all projects, close eclipse, clean all projects, close eclipse, and so on at least 5-6 times. eventually it all settled down and everything was as expected. weirdest thing ever!!

and no there were no errors in the problem or console view.

also this happened after a computer crash. the last time it happened my whole workspace was completely lost. it was still there on the computer, but when i tried to access it, it would be all blank.

for whatever reason computer crashes are really really really badly handled by eclipse.


also, you may update the project by clicking,

right click on project name -> select maven -> right click -> update project.

this helped out for me.



this can occur for a number of reasons. if you have changed the jdk, the project facet will have a red x next to it while no other folders shows an error. if this is the case, modify the jdk that is shown. this happens on occasion in our jax-ws class (hsg


i solved mine by

  • close all other projects (i.e. unrelated project option)

  • clean and build

my project was android, and that did it.


this happened when i downloaded on eclipse mars but restarting computer solved this problem for me.


i had same problem. i checked "problems"-tab and found no server for the project. i defined the server. the red-x disappered


you can go to project-> buildpath-> library

if there is any library that is x marked ie [cross marked] removed it and again try to build. it worked for me as well/


i encountered this problem today and found this link. i followed as mentioned by patrick schaefer above and opened the update maven project dialog. click on my working project and selected the checkbox "force update of snapshots/releases" and 'ok'. all the red cross vanished. i hope this helps anybody in a similar situation.


the question is old but i had this issue and i tried the following to no avail.

  • mvn update (with snapshots)
  • remove project and re-importing
  • clean build
  • restarting eclipse
  • changing order of items in build path

in my case i've got multi module mvn projects and one of the nested projects was showing a red x icon only in the project explorer (package explorer and problems were totally fine) and the whole project was fine as i could run classes without any issues. so seemed like a display issue.

the only thing that worked for me was to edit the pom.xml if the offending project module and make a breaking change (add 'xxx' to a tag name) which caused 1000s of errors and then undo.


you may clean the project by clicking,

in eclipse, right click on project -> clean

this helped out for me and saved a lot of time.



sometimes there are build path errors in .project, and you need to switch to resource view to actually see the file that is causing the error.


as others have said, bad file references in the build path is often the culprit.

usually a .jar file that has been moved/deleted. eclipse expects to find everything referenced on the build path at the location specified, and will complain if not.


i had the same issue and below steps resolved the issue:

  1. delete the jre from project> properties>java build path> libraries.

  2. restart the eclipse

  3. add the jre again

  4. rebuild the project using project>clean and chose option to build automatically.

please try.


subversion is occasionally the culprit for this as well. it might not have anything to do with your environment. but, there might be a discrepancy between the current and local state of the project. in my case, doing an update, and then a commit to the subversion server provided me with the expected clean result without any flags in the project such as the x.


in my case what solved this problem was simply to close eclipse and opening it again...however i am still not sure why this happened or why it worked. i was having problems cleaning my project (it said it could not delete certain file) and this solved it :):


so upon finding that there could be a missing package in the buildpath, thus the red x against the main project, to remove this:

1) go into "configure buildpath" of project 2) java build path -> source tab - you should see the red x against the missing package/file. if it no longer exists, just "remove" it.

red x begone! :)


i want to start by thanking everyone that answered. but cleaning and rebuilding was not enough in my case because the problem was still there and needed fixing.

turned out that one of my package directories had accidentally been copied so that an extra directory now existed called "copy of dagskra" containing java files with wrong package declarations. in addition the errors in this "new" directory don't show up with a "red-x" in the package that it exists in:

snapshot from package explorer showing errorous "copy of dagskra" directoryr

it was the hint of reading the "problems" tab :-) that turned me into the right direction, so i'm selecting that answer as the accepted answer because this is what i needed:

snapshot from problems tab

hoping this will help others...


try to clean the project and rebuild it.


after build. refresh project and if still persist just right click problems tab in eclipse and choose delete all.

it often happens if you do maven install and eclipse properties files do not get updated properly. even though your project does not have any errors. hopefully!


this happens often when i use maven, and i had always ignored it until i found this question. you need to update the project in this case (figured this out by looking in the problems pane)

from the project context menu: maven -> update project and select the available maven codebases

alternatively you can use (alt + f5) to bring up the same window

Related Query

More Query from same tag