This content has been marked as final. Show 2 replies
Late answer but may help others.
This is probably caused by an error in the build path. Go into eclipse project properties, Java Build Path and fix (remove it and add the correct one) the library in question (JDK in this case).