Seems the default JRE is not being set properly to the project that is showing this error.
All you need to do is check the JRE System Library.
Go to the project ->properties->java build path->libraries
Add Library- JRE SYSTEM LIBRARY ->Next
and now choose from the installed jre's
Alternatively you could also add the following to your classpath file :
That should solve the problem.