The type JPEGImageEncoder is not accessible due to restriction on required library C:\Java\jre1.6.
2011-08-09 16:54
597 查看
eclipse遇到报错:
The type JPEGImageEncoder is not accessible due to restriction on required library C:\Java\jre1.6.0_07\lib\rt.jar
google后发现用以下方式解决:
这个事eclipse的设置问题,它默认把这些受访问限制的API设成了ERROR,你只要把
Windows-Preferences-Java-Complicer-Errors/Warnings
里面的Deprecated and restricted API中的Forbidden references(access rules)选为Warning就可以编译通过了。
The type JPEGImageEncoder is not accessible due to restriction on required library C:\Java\jre1.6.0_07\lib\rt.jar
google后发现用以下方式解决:
这个事eclipse的设置问题,它默认把这些受访问限制的API设成了ERROR,你只要把
Windows-Preferences-Java-Complicer-Errors/Warnings
里面的Deprecated and restricted API中的Forbidden references(access rules)选为Warning就可以编译通过了。
相关文章推荐
- 报错: Access restriction: The type JPEGImageEncoder is not accessible due to restriction on required library
- Access restriction: The type OutputFormat is not accessible due to restriction on required library D:/Java/jdk1.6.0_20/jre/lib/r
- java 错误:Access restriction: The type Resource is not accessible due to restriction on required library
- 【Java】解决Acces restriction: The type X is not accessible due to restriction on required library 的解决方法
- Access restriction: The type JPEGImageEncoder is not accessible due to restriction on required libra
- 解决办法:Access restriction: The type JPEGImageEncoder is not accessible due to restriction on required
- The type ProxyGenerator is not accessible due to restriction on required library问题的解决
- Access restriction: The type Resource 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 C:\Program Files\Java\jre6\lib\rt.jar
- (Error) The type AESKeyGenerator is not accessible due to restriction on required library.
- 关于“The type *** is not accessible due to restriction on required library”问题的解决
- Access restriction: The type BMPImageReader 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 ByteInputStream is not accessible due to restriction on required library
- 关于“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 is not accessible due to restriction on required library问题处理
- Access restriction: The type JFrame is not accessible due to restriction on required library
- 关于“The type **** is not accessible due to restriction on required library”问题的解决