I've installed Java JDK and eclipse IDE successfully in my system but every time I run Eclipse IDE and use the JFrame, JPanel and other J2SE imports this error message is present: 
Access restriction: The type JFrame is not accessible 
  due to restriction on required library 
  C:\Program Files\Java\jre.8.0_31\lib\rt.jar
Can anybody help?