javajdbccachedrowset

CachedRowSetImpl cannot be resolved to a type


I'm using CachedRowSet to hold the ResultSet form DB. According some demo code: I write below code:

CachedRowSetImpl crs = new CachedRowSetImpl();

But eclipse prompt me that CachedRowSetImpl cannot be resolved to a type. So I know I need to import some package. But I don't know which one to import? Anyone knows?


Solution

  • CachedRowSetImpl class is packaged in rt.jar. So you don't need to add any jar for this class. Can you try to remove JRE currently added to eclipse buildpath and again re-add it.