您的位置:首页 > 编程语言 > Java开发

Eclipse引入JRE中类提示出错

2016-08-19 00:00 435 查看
如下引入JRE中的类

import sun.misc.BASE64Decoder;
import com.sun.xml.internal.bind.marshaller.CharacterEscapeHandler;

Eclipse报错。
Eclipse中设置:

Windows -> Preferences -> Java -> Compiler -> Errors/Warnings ->
Deprecated and trstricted API -> Forbidden reference (access rules): ->由Error改为 warning 即可。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  Eclipse 环境
相关文章推荐