The real problem was, you built classes before by some upgraded version of JDK than what you currently have. I too faced a similar issue, which I solved in Eclipse by following steps: Project Properties (Alt + EnterKey) -> Java Build Path -> "Libraries" section -