All the other questions have the best suggestions, but sometimes they won't work; I've found that this is when it's due to Eclipse incorrectly validating or linking a super-class.
So if you've tried everything else, and your classfile extends or implements another, try modifying and saving the superclass to force Eclipse to... well, do whatever it did wrong in the first place.