解决com.sun等包编译不过去的问题

来源:互联网 发布:蝶舞网卡网络唤醒 编辑:程序博客网 时间:2024/04/27 16:18
Eclipse默认把这些受访问限制的API设成了ERROR。只要把Windows-Preferences-Java-Complicer-Errors/Warnings里面的Deprecated and restricted API中的Forbidden references(access rules)选为Warning就可以编译通过。