Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

troubles importing CachedRowSetImpl

 
bart de vreese
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 144
Fedora Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The first result on google for your error message
 
bart de vreese
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 !
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic