我想讀XLSX file.its顯示此錯誤「java.lang.NoSuchMethodError」 異常
Exception in thread "main" java.lang.NoSuchMethodError: org.apache.xmlbeans.XmlOptions.setSaveAggressiveNamespaces()Lorg/apache/xmlbeans/XmlOptions;
at org.apache.poi.POIXMLDocumentPart.<clinit>(POIXMLDocumentPart.java:46)
at NewClass.main(NewClass.java:33)
Java Result: 1
錯誤是在行:
OPCPackage opc=OPCPackage.open(is);
XSSFWorkbook wb= new XSSFWorkbook(opc);
這兩條線中的哪條線是#33? – allingeek