*
The moose likes JDBC and the fly likes troubles importing CachedRowSetImpl Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "troubles importing CachedRowSetImpl" Watch "troubles importing CachedRowSetImpl" New topic
Author

troubles importing CachedRowSetImpl

bart de vreese
Greenhorn

Joined: Jun 06, 2011
Posts: 2
Working with JRE JavaSE1.6
under rt.jar I can clearly see the com.sun.rowset.CachedRowSetImpl class.
But when I try to import it into my application (import com.sun.rowset.CachedRowSetImpl;) I got the following error :

Access restriction: The type CachedRowSetImpl is not accessible due to restriction on required library C:\Program Files\Java\jre6\lib\rt.jar


Anyone has a solution ?

thanks !
Bart
Mike Zal
Ranch Hand

Joined: May 04, 2011
Posts: 144

The first result on google for your error message


OCJP6, OCWCD5
bart de vreese
Greenhorn

Joined: Jun 06, 2011
Posts: 2
thanks ! this solution worked for me

I changed settings in Eclipse : Windows -> Preferences -> Java -> Compiler -> Errors/Warnings -> Deprecated and restricted API -> Forbidden reference (access rules): -> change to warning

Also had to remove JRE from the build path first and then re-add it !
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: troubles importing CachedRowSetImpl
 
Similar Threads
CachedRowSet is abstract; cannot be instantiated?
Method keeps returning null
How do I use the CacheRowSet?
the question about CachedRowSet and CachedRowSetImpl
using datasource help