编程那点事编程那点事

专注编程入门及提高
探究程序员职业规划之道!

Class org.apache.poi.hssf.usermodel.HSSFWorkbook does not implement the requested interface org.apache.poi.ss.usermodel.Workbook

用POI导出excle的时候报错,报错如下:

java.lang.IncompatibleClassChangeError: Class org.apache.poi.hssf.usermodel.HSSFWorkbook does not implement the requested interface org.apache.poi.ss.usermodel.Workbook

网上查了下,报java.lang.IncompatibleClassChangeError错的原因poi的jar包重复了,查了下jar包,果然有重复的包,删掉某个jar包,问题就解决了。

poi jar包重复

未经允许不得转载: 技术文章 » Java编程 » Class org.apache.poi.hssf.usermodel.HSSFWorkbook does not implement the requested interface org.apache.poi.ss.usermodel.Workbook