java 报错 the type JOptionPane is not accessible due to restriction on required library ×
来源:互联网 发布:淘宝违禁品怎么防排查 编辑:程序博客网 时间:2024/06/15 08:13
报错描述
Description Resource Path Location Type Access restriction: The method showInputDialog(Component, Object) from the type JOptionPane is not accessible due to restriction on required library /usr/lib/jvm/java-8-oracle/jre/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
点击 OK
搞定收工
0 0
- java 报错 the type JOptionPane is not accessible due to restriction on required library ×
- 报错: Access restriction:The type JPEGCodec is not accessible due to restriction on required library
- 报错: Access restriction:The type JPEGCodec is not accessible due to restriction on required library
- The type JOptionPane is not accessible due to restriction on required library
- Eclipse报错:Access restriction: The type * is not accessible due to restriction on required libray
- Eclipse报错Access restriction: The type BASE64Encoder is not accessible due to restriction on required
- Java Project报错:Access restriction is not accessible due to restriction on required library
- Java Project报错:Access restriction is not accessible due to restriction on required library
- The type JPEGImageEncoder is not accessible due to restriction on required library C:\Java\jre1.6.
- JAVA ERROR---Access restriction: The type JOptionPane is not accessible due to restriction on requir
- Access restriction: The type XXX is not accessible due to restriction on required library XXX
- 解决Access restriction: The type XXXX is not accessible due to restriction on required library
- Access restriction: The type is not accessible due to restriction on required library问题处理
- Access restriction: The type XXX is not accessible due to restriction on required library XXX
- Access restriction: The type JPEGCodec is not accessible due to restriction on required library
- Access restriction: The type BASE64Encoder is not accessible due to restriction on required library
- Access restriction: The type XXXX is not accessible due to restriction on required library
- Access restriction: The type BMPImageReader is not accessible due to restriction on required library
- THINK PHP自动完成,填充时间的一个“坑”
- android屏幕适配建议 (一)
- 关于网上商城开发的随笔记录1
- Fragment动态添加控件(Button/Layout/...)
- mysql中有大量sleep进程的原因与解决办法
- java 报错 the type JOptionPane is not accessible due to restriction on required library ×
- 让LinearLayout实现水平滑动,左右滑动
- JSONObject简介
- 毕业生自传----入职深白天地(Gone)
- 屏幕大小调整palyer setting
- 子线程更新Ui两种方法
- 关于百度坐标转火星坐标的问题
- Messager 跨域解决方案
- Hibernate回调函数