Access restriction: The type JPanel is not accessible due to restriction on required library C:\Prog

爱被打了一巴掌 2023-07-22 02:44 105阅读 0赞

问题

还是我把Tomcat服务器配置配置给删了,导致项目再次运行的时候出现了如下问题
Access restriction: The type JPanel is not accessible due to restriction on required library C:\Program Files (x86)\Java\jre1.8.0_131\lib\rt.jar

在这里插入图片描述

解决

方法1

Project -> Properties -> libraries,
先remove掉JRE System Library,然后再Add Library重新加入。

或者

右键报错项目→Build Path→configure build path→选择libraries→移除JRE System Library[jre版本]→点击应用之后再重新选择Add library中的JRE System Library添加再应用。

参考

https://blog.csdn.net/liu7575165/article/details/83700264
https://blog.csdn.net/Amo\_lt/article/details/78487637

发表评论

表情:
评论列表 (有 0 条评论,105人围观)

还没有评论,来说两句吧...

相关阅读