Access restriction:The type JPEGCodec is not accessible due to restriction on required library C:Pr(

Posted 知识铸就三叉戟

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Access restriction:The type JPEGCodec is not accessible due to restriction on required library C:Pr(相关的知识,希望对你有一定的参考价值。

报错: 
Access restriction:The type JPEGCodec is not accessible due to restriction on required library C:\Program Files\Java\jre6\lib\rt.jar 
  
解决方法: 
Project -> Properties -> libraries, 
先remove掉JRE System Library,然后再Add Library重新加入。

 

将jre项目用自己下载的jre






以上是关于Access restriction:The type JPEGCodec is not accessible due to restriction on required library C:Pr(的主要内容,如果未能解决你的问题,请参考以下文章

Access restriction: The type QName is not accessible due to restriction on required library

Access restriction : The constructor BASE64Decoder() is not accessible due to restriction on require

Access restriction: The type JPEGImageEncoder is not accessible due to restriction on required libra

关于Access restriction: The type 'Application' is not API (restriction on required library)(示例

Access restriction:The type JPEGCodec is not accessible due to restriction on required library C:Pr(

Access restriction: The type 'JPEGCodec' is not API