确保机器上安装了jdk 1.6以上版本,

选择MyEclipse/Eclipse菜单Windows->Preferences–>java->Compiler–>compiler compliance level选择 1.6,

刷新工程,重新编译。

如果问题还没解决,就在报错的工程上,

鼠标右键选择 Properties–>Java Compiler–>compiler compliance level 中选择 1.6,刷新工程,重新编译。

remove ‘@override‘ annotation_重新编译