Access restriction: The type JFrame is not accessible due to restriction on required library

使用Myeclipse写Java项目继承JFrame出现错误Access restriction: The type JFrame is not accessible due to restriction on required library E:\java\jre\lib\rt.jar

jre system library是jdk的jar文件库。本来是用Myeclipse来写web的,使用的文件库不符合Java项目。解决方法:
Access restriction: The type JFrame is not accessible due to restriction on required library

项目右键,进入到Configuer Build Path

Access restriction: The type JFrame is not accessible due to restriction on required library可以看到
Access restriction: The type JFrame is not accessible due to restriction on required library
Add Library
Access restriction: The type JFrame is not accessible due to restriction on required library选择javaSE-1.7
Access restriction: The type JFrame is not accessible due to restriction on required library
Access restriction: The type JFrame is not accessible due to restriction on required library界面
Access restriction: The type JFrame is not accessible due to restriction on required library
错误解决。