Am facing NoClassDefFoundError for aspose jar after Java17 upgrade. It was working well in Java 8 in production. I could find the respective package (com.aspose.cells.b.a.b.zh) inside aspose-cells-20.9.8 jar but still this error is thrown during run time API invocation. Please clarify the root cause of the issue.
Providing few lines on how its invoked
HtmlLoadOptions opts = new HtmlLoadOptions();
opts.setAutoFitColsAndRows(true);
opts.setConvertNumericData(false);
opts.setMemorySetting(MemorySetting.MEMORY_PREFERENCE);
Workbook wb = new Workbook(htmlFile.getAbsolutePath(), opts);
stack trace:
Caused by: java.lang.NoClassDefFoundError: Could not initialize class com.aspose.cells.b.a.b.zh
at com.aspose.cells.b.a.b.zg.<init>(Unknown Source)
at com.aspose.cells.b.a.b.zg.<init>(Unknown Source)
at com.aspose.cells.zajw.a(Unknown Source)
at com.aspose.cells.zajw.<init>(Unknown Source)
at com.aspose.cells.zakq.<init>(Unknown Source)
at com.aspose.cells.zakr.a(Unknown Source)
at com.aspose.cells.zakr.<init>(Unknown Source)
at com.aspose.cells.zakx.<init>(Unknown Source)
at com.aspose.cells.zaky.a(Unknown Source)
at com.aspose.cells.zjv.a(Unknown Source)
at com.aspose.cells.Workbook.a(Unknown Source)
at com.aspose.cells.Workbook.<init>(Unknown Source)