CachedRowSetImpl cannot be resolved to a type

roast_soul picture roast_soul · Feb 5, 2013 · Viewed 11.3k times · Source

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?

Answer

Yogesh Ralebhat picture Yogesh Ralebhat · Feb 5, 2013

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.