Android问题:Java基础问题Access restriction: The type JOptionPane is not accessible due to restriction……
来源:互联网 发布:淘宝网找不到卖家中心 编辑:程序博客网 时间:2024/05/22 12:25
Access restriction:
The type JOptionPane is not accessible due to restriction on required library C:\Program Files\Java\jre1.8.0_25\lib\rt.jar
所需要的类库由于受限制无法访问JOPtionPane。
所以,需要给予一定的权限:
Eclipse->project->properties->Java Build Path->Libraries->Java System Libraries->Access rules下:
如果有javax/swing/JOptionPane直接勾选,如果没有:
点击右边的Edit,弹出Type Access Rules:
Add:选择Accessiable,在rule pattern中键入:
The type JOptionPane is not accessible due to restriction on required library C:\Program Files\Java\jre1.8.0_25\lib\rt.jar
所需要的类库由于受限制无法访问JOPtionPane。
所以,需要给予一定的权限:
Eclipse->project->properties->Java Build Path->Libraries->Java System Libraries->Access rules下:
如果有javax/swing/JOptionPane直接勾选,如果没有:
点击右边的Edit,弹出Type Access Rules:
Add:选择Accessiable,在rule pattern中键入:
javax/swing/JOptionPane,(一定要注意这个格式,另外这个弹出的Type Access Type对话框下面有提示可以看一下)
然后一路点击OK就可以了。
0 0
- Android问题:Java基础问题Access restriction: The type JOptionPane is not accessible due to restriction……
- JAVA ERROR---Access restriction: The type JOptionPane is not accessible due to restriction on requir
- Eclipse出现Access restriction : The type BASE64Decoder is not accessible due to restriction问题
- Access restriction: The type is not accessible due to restriction on required library问题处理
- Access restriction: The type * is not accessible due to restrict,报错问题
- 解决“Access restriction: The type BASE64Encoder is not accessible due to restrict”的问题
- Access restriction: The type * is not accessible due to restrict,报错问题.
- Access restriction: The type * is not accessible due to restrict,报错问题
- Access restriction: The type * is not accessible due to restrict,报错问题
- Access restriction: The type * is not accessible due to restrict,报错问题
- Access restriction: The type FtpClient is not accessible due to
- Access restriction: The type * is not accessible due to restrict
- Access restriction: The type * is not accessible due to restrict
- java 报错 the type JOptionPane is not accessible due to restriction on required library ×
- Access restriction: The type xxx is not accessible due to restriction on restriction on required l
- Access restriction: The method XXX from the type XXX is not accessible due to restriction XXX
- Eclipse 编译错误 Access restriction:The type *** is not accessible due to restriction on... 解决方案
- 解决办法:Access restriction: The type JPEGImageEncoder is not accessible due to restriction
- hdu5183 hush
- 多线程(四):Condition 关键字
- Java学习之网路编程--TCP/IP
- 大学以来第一篇应试类作文,阅卷老师评:偏题
- Android Tips---Android平台常见属性集合 (2
- Android问题:Java基础问题Access restriction: The type JOptionPane is not accessible due to restriction……
- nginx安装与配置
- ionic
- Android4.0 彻底隐藏状态栏
- 241个jquery插件—jquery插件大全
- 12年的滑雪小记
- 关闭Linux下的SELinux
- Codeforces 484E. Sign on Fence 可持久化线段树
- AngularJS初学