生成图片验证码时遇到的问题

来源:互联网 发布:知乎怎么发布话题 编辑:程序博客网 时间:2024/05/18 20:32

Eclipse 警告提示:Access restriction:The type JPEGCodec is not accessible due to restriction on  

两种解决方案: 
1:Windows -> Preferences -> Java -> Compiler -> Errors/Warnings -> Deprecated and trstricted API -> Forbidden reference (access rules): -> 改变为 warning


2:[Project] -> Properties -> Java Build Path -> Libraries -> Remove JRE System Library 
   Add Library -> JRE System Library -> Click OK



原创粉丝点击