NocLassDeffOunderRor: Javax/XML/Stream/XMLStreamException
-
29-10-2019 - |
Domanda
Ricevo la seguente eccezione mentre provo a scrivere un .xlsx file using Apache POI
NoClassDefFoundError: javax/xml/stream/XMLStreamException
Ecco lo snippet del codice:-
XSSFWorkbook wb = new XSSFWorkbook();
Sheet sheet = wb.createSheet();
Row row = sheet.createRow(0);
Cell cell = row.createCell(0);
cell.setCellValue(100);
FileOutputStream fileOut = new FileOutputStream("D:\\workspace\\April\\Excel Test\\workbook.xlsx");
wb.write(fileOut);
fileOut.close();
Ho i seguenti barattoli inclusi
- Dom4J-1.6.1
- POI-OOXML-3.5-FINAL
- POI-3.6-20091214
- XMLBEANS-2.3.0
- OOXML-SCHEMAS-1.0
Per favore fatemi sapere cosa sto sbagliando qui o mi manca qualcosa.
Nessuna soluzione corretta
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow