Access restriction on class due to restriction on required library rt.jar?
http://stackoverflow.com/questions/860187/access-restriction-on-class-due-to-restriction-on-required-library-rt-jar
Go to the Build Path settings in the project properties.Remove the JRE System Libra