Forum Discussion
This is the code I used in SoapUI:
def filePath = "C:/Work/Data/Sasktel/Commercail Wireless/1. Internal Flags/OR/OR-ICT00345.xlsx"
FileInputStream inputStream = new FileInputStream(new File(filePath));
XSSFWorkbook workbook = new XSSFWorkbook(inputStream);
XSSFSheet sheet = workbook.getSheetAt(0);
rowNumInt = rowNumInt + 1
Row row = sheet.createRow(rowNumInt);
Cell cell = row.createCell(25);
cell.setCellValue(result);
inputStream.close();
FileOutputStream outputStream = new FileOutputStream(filePath);
workbook.write(outputStream);
workbook.close();
outputStream.close();
This is the exception I get:
ERROR:java.lang.NoClassDefFoundError: org/openxmlformats/schemas/spreadsheetml/x2006/main/CTExtensionList
java.lang.NoClassDefFoundError: org/openxmlformats/schemas/spreadsheetml/x2006/main/CTExtensionList
Do you have a solution to fix this?
Thanks
Hi Jason1,
Hope below thread will help you in solving your problem:
java lang NoClassDefFoundError with Apache POI
Related Content
- 2 years ago
Recent Discussions
- 3 days ago