new XSSFWorkbook();报错NoClassDefFoundError 在程序中添加了两个jar包就好了 dom4j-1.6.1 xmlbeans-2.3.0 以前有jar包: poi-3.8.jar poi-ooxml-3.8.jar poi-ooxml-schemas-3.8.jar