Java 调用“NoClassDefFoundError”时出错;写下;poi中的方法

Java 调用“NoClassDefFoundError”时出错;写下;poi中的方法,java,apache-poi,noclassdeffounderror,Java,Apache Poi,Noclassdeffounderror,我的代码如下所示: fileoutput = new FileOutputStream(productSheetFilePath); m_psWorkBook.write(fileoutput); 如果m_psWorkBook的类型为XSSFWorkbook,那么在调用“write”方法时,会抛出一个NoClassDefFoundError验证,有人有过这种情况吗?解决方案是使用ooxml-schemas-1.0.jar而不是这个poi-ooxml-schemas-3.6.jar

我的代码如下所示:

fileoutput = new FileOutputStream(productSheetFilePath);
m_psWorkBook.write(fileoutput);

如果m_psWorkBook的类型为XSSFWorkbook,那么在调用“write”方法时,会抛出一个NoClassDefFoundError验证,有人有过这种情况吗?

解决方案是使用ooxml-schemas-1.0.jar而不是这个poi-ooxml-schemas-3.6.jar