Dear All,
Thanks Valter Araujo.
I was also getting same error but now it is working. initially JDK compiler was set 1.4 but in my system 1.7 was there. so just i have made JDK compiler 1.7.
Please follow the below steps for correct setting-
Window Menu->Preference ->Compiler->JDK Compiler
Choose the compiler version as you have installed in system
Regard,