Sto ottenendo il seguente eccezione durante il tentativo di scrivere un .xlsx file using Apache POI
Scrivere un file in formato xlsx utilizzando Apache POI
NoClassDefFoundError: javax/xml/stream/XMLStreamException
Qui sta il frammento di 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 vasi inclusi
- dom4j-1.6.1
- Po i-OOXML-3,5-FINALE
- POI-3,6-20.091.214
- XMLBeans-2.3.0
- OOXML-schemas-1.0
Fatemelo sapere che cosa sto facendo male qui o io sono manca qualcosa
Grazie a un uomo man.It funziona ora. :) – Vivek