I hit F5 ~1000 times and restarted eclipse (also with -clean), deleted /bin, but nothing helps. Manually importing DoodleClient does not help. DoodleClient exists and is perfect
I have 3 projects in my project explorer and they have dependencies on each other.
They all went nuts and I had 9000+ errors across all 3 projects.
It turned out that cleaning each of them in the correct order (middle, top, bottom) resolved everything.
Cleaning in the correct order is what fixed my issue.
Just thought it was worth mentioning :)
Right click on project then R-click on Maven then Update Project
I had the same problem. I tried to add the statement with the static method call again and delete the old one. Eclipse even helped me with auto-completion and after that it underlined the statement again. In my case closing the project and importing it again after that worked.
Luckily I didn't have 1000's of errors; for my 20+ class resolution problems, what I did was to:
Tedious but it worked....
Compiler checks dependencies on compiled files, not on source code. So it means the compiler doesn't file DoodleClient.class.
To check if you have the compiled class, open the Navigator view (Window -> Show View -> Navigator
) and look for the directory that contains the .class files (usually bin/<project>
or target/classes
for Maven) and check if you have there DoodleClient.class file. If you don't you can:
excluding
attribute in some classpathentry (delete it from the exclusion attribute if it does)None of the things above worked.
However I could fix it like this:
Result: Eclipse finds classes again.