Could Not Initialize Class com.aspose.slides.internal.nn.do

We are getting below error in our environment

ERROR : Cause(Could not initialize class com.aspose.slides.internal.nn.do), Reason(A Java class definition was not found at runtime.), Possible Resolutions([1]=Add the Jar file that contains the missing class in your Extension packaging zip., [2]=Add the Jar file that contains the missing class in your Extension manifest file as a Jar Resource.)

Environment infra details.

OS - Ubuntu 20.04.5 LTS
JDK - OpenJDK Runtime Environment Corretto-11.0.16.9.1
Aspose slides - aspose-slides-21.9-jdk16.jar

Could you please help us resolving this issue ASAP ?

Thanks

@rgutta,
Thank you for contacting support.

It looks like the issue is related to your app configuration. You should check it carefully and check the issue with an empty project. If the issue persists, please share the following data and information:

  • input presentation file or other files (if you used them)
  • code example or simple project that reproduces the error
  • full stack trace of the error

@Andrey_Potapov thanks for the quick reply, I have repeated the same test on windows OS with
OpenJDK Runtime Environment Corretto-11.0.16.9.1 and the same aspose slides library and I was not able to reproduce this issue

here is the code snippet

ByteArrayOutputStream stream = new ByteArrayOutputStream();
Presentation presentation = new Presentation(fileName);
presentation.save(stream, SaveFormat.Html);
presentation.dispose();

ERROR: failed at error section “Conversion execution” with error stack : JavaException: java.lang.Exception: Could not initialize class com.aspose.slides.internal.nn.do.

@rgutta,
Please share the presentation file you used to convert to HTML document. You can zip the file and upload it here.