wood burning stoves
The moose likes JDBC and Relational Databases 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 and Relational Databases
Bookmark "troubles importing CachedRowSetImpl" Watch "troubles importing CachedRowSetImpl" New topic

troubles importing CachedRowSetImpl

bart de vreese

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 !
Mike Zal
Ranch Hand

Joined: May 04, 2011
Posts: 144

The first result on google for your error message

bart de vreese

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
It's not a secret anymore!