展会信息港展会大全

eclipse中调用CachedRowSetImpl类时,出现错误!
来源:互联网   发布日期:2016-01-14 14:22:34   浏览:1431次  

导读:调用CachedRowSetImpl类时,出现以下错误:Access restriction: The type CachedRowSetImpl is not accessible due...

调用CachedRowSetImpl类时,出现以下错误:

Access restriction: The type CachedRowSetImpl is not accessible due to restriction on required library C:\glassfish3\jdk7\jre\lib\rt.jar

但能在rt.jar中找到CachedRowSetImpl的类文件。

解决办法:

这个是eclipse的设置问题,它默认把这些受访问限制的API设成了ERROR,我们只要把

Windows-Preferences-Java-Complicer-Errors/Warnings里面的Deprecated and restricted API中的Forbidden references(access rules)选为Warning就可以编译通过了

赞助本站

人工智能实验室

相关热词: java 教程

AiLab云推荐
展开

热门栏目HotCates

Copyright © 2010-2024 AiLab Team. 人工智能实验室 版权所有    关于我们 | 联系我们 | 广告服务 | 公司动态 | 免责声明 | 隐私条款 | 工作机会 | 展会港