These errors happend because some interface /class in the hierarchy cannot be resolve.
For example: the error is occur in your class - class x, x inherits y, and in turn, y inherits z. However, the compiler
Therefore, you have to add package containing z to the classpath/ or project's Java Build Path (if you are using eclipse).