Access restriction: The type SupplementaryCharacterData is not accessible due to restriction on required library D:\Java\jdk1.7.0_71\jre\lib\rt.jar
解决方法:
①:Project -> Properties -> libraries, 先 remove 掉 JRE System Library,然后再 Add Library 重新加入。
②:Eclipse 默认把这些受访问限制的API设成了ERROR。只要把Windows-Preferences-Java-Complicer- Errors/Warnings里面的Deprecated and restricted API中的Forbidden references(access rules)选为Warning就可以编译通过。