解决方案1(推荐):
只需要在project build path中先移除JRE System Library,再添加库JRE System Library,重新编译后就一切正常了。
解决方案2:
Windows -> Preferences -> Java -> Compiler -> Errors/Warnings ->
Deprecated and trstricted API -> Forbidden reference (access rules): -> 改为warning
new sun.misc.BASE64Encoder()报错找不到jar包
原创紫色迷情123 ©著作权
文章标签 BASE64Encoder() 报错 rt.jar 文章分类 前端开发
-
JS选择图片获取base64编码预览图片
通过将图片转为data url的base64格式编码,实现直接预览图片
图片预览 base64 dataurl 图片转base64 -
import sun.misc.BASE64Encoder报错
解决方法:将JDK换为8即可
java bug 解决方法