We are using Aspose.Slides for Java (version 1.8.2) and when processing a Powerpoint presentation with particular slide (not sure exactly which slide of presentation), it is throwing the following error…
java.lang.NoSuchMethodError: java.lang.String.contains(Ljava/lang/CharSequence;)
at com.aspose.slides.bh.if(SourceFile:168)
at com.aspose.slides.cz.do(SourceFile:263)
at com.aspose.slides.dj.if(SourceFile:42)
at com.aspose.slides.dJ.if(SourceFile:356)
at com.aspose.slides.Presentation.write(SourceFile:623)
we are running in WebLogic8.1 and JDK1.4.2. The Aspose.Slide for Java states it works with JDK1.4 and up…but the contains method of the String class is not supported in JDK1.4.2 (it is introduced in JDK1.5). Can you please let me know why your class is referencing contains method when it is supposed to work in JDK1.4.2? Thanks!
i downloaded aspose.total for java which includes the latest aspose.slides (v1.8.7) and it seems it is built against JDK1.6 (Manifest.mf file states that it was built using jdk16)…
Created-By: 1.6.0_06 (Sun Microsystems Inc.)
Caused by: java.lang.UnsupportedClassVersionError: com/aspose/slides/Slide (Unsupported major.minor version 49.0)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
can the Aspose.Slides JAR be updated to be built against JDK1.4? we are running into an issue with processing a slide (which seems to be calling code in Aspose.Slides which uses the contains method of String class -- which is not available in JDK1.4). thanks!