我在eclipse中新建项目,然后粘贴java文件结果很多错误,查看错误原因
Access restriction:The type JPEGCodec is not accessible due to restriction on required library 。。。
下面是我的解决方法:
1.在工程目录下找到library.
2.右键->Build Path->Remove frome Build Path
这一步就是把library给去掉;
3.选中java工程,右键->Build Path->Add Libraries,然后选中下图
然后点击next->finish。
这一步就是重新添加library.
我的就是i这样弄好的。