解决The import com.sun.rowset cannot be resolved以及CachedRowSetImpl cannot be resolved to a type

假如网上说的其他办法例如:clean项目 remove jre 然后re-add再重启eclipse、从网上下载导入com.sun.rowset.jar包……对你的项目都不起作用,试试这个方法哈哈哈~原理我还不会解释,总结一下就是jdk版本的问题。我是一个初学者…
我是打算用CachedRowSetImpl 做分页的(初学)
报错现场如下图所示:
解决The import com.sun.rowset cannot be resolved以及CachedRowSetImpl cannot be resolved to a type解决The import com.sun.rowset cannot be resolved以及CachedRowSetImpl cannot be resolved to a type
在以上的基础上,右击项目名然后选最后一个properties,
解决The import com.sun.rowset cannot be resolved以及CachedRowSetImpl cannot be resolved to a type
选中JRE System Library[JavaSE-13]点Remove解决The import com.sun.rowset cannot be resolved以及CachedRowSetImpl cannot be resolved to a type
点Add Library…
解决The import com.sun.rowset cannot be resolved以及CachedRowSetImpl cannot be resolved to a type
到了下图点击next
解决The import com.sun.rowset cannot be resolved以及CachedRowSetImpl cannot be resolved to a type
如下图就是next后的界面 选择第一项 选择里面的JavaSE-1.8(jdk-13.0.2)点finish再点apply.(关键的操作)
解决The import com.sun.rowset cannot be resolved以及CachedRowSetImpl cannot be resolved to a type
然后就可以了!!!
然后就不报红了哈哈哈啊哈!