Free Support Forum -

Compatability support for Open JDK 11 and Open JDK 13 in Aspose.Slides (Java)

Now we wanted to switch our project from oracle jdk 8 to openjdk 13, but unfortunately when creating a (new Presentation(String file)) object we get java.lang.NoClassDefFoundError. We did the same check for openjdk 11 and oracle jdk11. The error remained the same. Could you please explain which version of java we can use?


I have observed the issue shared by you and request you to please share the Aspose.Slides for Java version used on your end along with complete stack trace. If you are using any older version then please first try using latest Aspose.Slides for Java 19.12 on your end and share if that works or not on your end. Ideally, JDK 10 and 11 should work with latest version.

Here is my configuration:
java version “11.0.5” 2019-10-15 LTS
Java™ SE Runtime Environment 18.9 (build 11.0.5+10-LTS)
Java HotSpot™ 64-Bit Server VM 18.9 (build 11.0.5+10-LTS, mixed mode)

com.aspose-slides 19.12 jdk16

Stack trace:
java.lang.NoClassDefFoundError: Could not initialize class com.aspose.slides.Presentation


Thank you for the information. As requested earlier, please provide the complete stack trace with us that will be helpful to us in investigating the issue.

Sptring source_file.getAbsolutePath() = “/tmp/ClearSlide/working/8JRA4KX6V3W43QAACDMX/80971a37-ebc5-4351-bab4-98d78339f7be-Presentation1.pptx”
(An exception appears in this place - —> Presentation presentationToPdf = new Presentation(source_file.getAbsolutePath());

java.lang.NoClassDefFoundError: Could not initialize class com.aspose.slides.Presentation
at com.cs.PPTConvertServlet.doConvertPowerpoint(
at com.cs.CSConvertRootServlet$ConverterWrapper.convertPPT(
at com.cs.CSConvertRootServlet.doGet(
at com.cs.CSConvertRootServlet.doPost(
at javax.servlet.http.HttpServlet.service(
at javax.servlet.http.HttpServlet.service(
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
at org.apache.catalina.core.ApplicationFilterChain.doFilter(
at org.apache.tomcat.websocket.server.WsFilter.doFilter(
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
at org.apache.catalina.core.ApplicationFilterChain.doFilter(
at org.apache.catalina.core.StandardWrapperValve.invoke(
at org.apache.catalina.core.StandardContextValve.invoke(
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(
at org.apache.catalina.core.StandardHostValve.invoke(
at org.apache.catalina.valves.ErrorReportValve.invoke(
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(
at org.apache.catalina.core.StandardEngineValve.invoke(
at org.apache.catalina.connector.CoyoteAdapter.service(
at org.apache.coyote.http11.Http11Processor.service(
at org.apache.coyote.AbstractProcessorLight.process(
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(
at java.base/java.util.concurrent.ThreadPoolExecutor$
at org.apache.tomcat.util.threads.TaskThread$
at java.base/


Thank you for sharing the information. An issue with ID SLIDESJAVA-38017 has been created in our issue tracking system as investigation to further investigate it. This thread has been linked with the isse so that you may be notified once the issue will be fixed.