使用myeclipse开发java,解决java中继承JFrame类出现The type JFrame is not accessible due to restriction的问题

时间:2015-05-20 20:26:57   收藏:0   阅读:335

在java中创建窗体,导入了java中的JFrame类,之后会出现错误:

Access restriction: The type QName is not accessible due to restriction on required library D:\myeclipse professer2014

可以解决的办法为:

Project—>Properties—>选中Java Build Path—>选择Libraries,出现下面界面:

技术分享

 

 

 

选中窗口中原有的JRE库,点击Remove,之后再选择技术分享Add Libraries,出现下图:
技术分享
再选中蓝色部分的选项,JRE System Libraries,点next,在finish。完成所有操作之后重启myeclipse就可以了。

原文:http://www.cnblogs.com/coffy/p/4517948.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!