MYEclipse 对核心包tr.jar访问受限的问题

C:\ProgramFiles\Genuitec\Common\binary\com.sun.java.jdk.win32.x86_1.6.0.013\jre\lib\rt.jar

解决方法:

Eclipse默认把这些受访问限制的API设成了ERROR。只要把Windows-Preferences-Java-Complicer-Errors/Warnings里面的Deprecated and restricted API中的Forbidden references(accessrules)选为Warning就可以编译通过。


猜你喜欢

转载自blog.csdn.net/wang1588143/article/details/6641526