报错: The type ByteInputStream 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 FilesJavajre6lib t.jar 
  
解决方法: 
Project -> Properties -> libraries, 
先remove掉JRE System Library,然后再Add Library重新加入。 

原文地址:https://www.cnblogs.com/hyq0002013/p/5485441.html