You get an error because you are using Java 1.5, which does not support @Override annotations to override implementations. Go to Eclipse settings and set the language level to 1.6.
EDIT - to change the language level, go to Project> Properties> Java Compiler and set the language level there. You may need to click to enable specific project settings.
source share