Hello,
I’m using Aspose.Slides in a Java5 project. I’m confused which version of the API I should use:
a) aspose.slides-2.7.0-jdk14.jar
Seems to have dependencies to net.sf.retrotranslator which is not needed for Java5.
b) aspose.slides-2.7.0.jar
Does not run in a Java5 VM because it contains a class file format that is to recent for the VM.
Any hint is welcome,
Andreas.
Hi Andreas,
Thanks for your interest in Aspose.Slides.
There are two jar files in Aspose.Slides for Java, one (aspose.slides-2.7.0-jdk14.jar) is for JDK1.4/1.5 and other is for JDK 1.6 and above.
Hi,
thanks for the reply. If I use aspose.slides-2.7.0-jdk14.jar in my 1.5 environment, I get the following Exception:
java.lang.NoClassDefFoundError: net/sf/retrotranslator/runtime/java/lang/Iterable_
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at com.aspose.slides.Placeholders.(SourceFile:22)
at com.aspose.slides.Slide.(SourceFile:40)
at com.aspose.slides.MainMaster.(SourceFile:60)
at com.aspose.slides.Presentation.do(SourceFile:426)
at com.aspose.slides.Presentation.(SourceFile:557)
at …
Do I need to add some library to the classpath? I could not find any in aspose-slides-2.7.0-java.zip.
Kind Regards,
Andreas.
Hi Andreas,
Please accept my apology for late response. Please share your code and presentation file for investigation purposes.
Hi,
all I do is opening a presentation using:
Presentation pres = new Presentation(“plain.ppt”);
See the ppt attached.
Kind Regards,
Andreas.
Hi Andreas,
Please use the aspose.slides-2.7.0.jar file and let me know if you are facing the problem. Can you please share what exact JDK version you are using?
Hi,
thanks for the feedback. I face the problem with:
java version "1.5.0_22"
Java™ 2 Runtime Environment, Standard Edition (build 1.5.0_22-b03)
Java HotSpot™ Client VM (build 1.5.0_22-b03, mixed mode)
and
java version "1.5.0"
Java™ 2 Runtime Environment, Standard Edition (build pwi32devifx-20100127 (SR11 FP1 ))
IBM J9 VM (build 2.3, J2RE 1.5.0 IBM J9 2.3 Windows 7 x86-32 j9vmwi3223ifx-20100125 (JIT enabled)
J9VM - 20100122_52103_lHdSMr
JIT - 20091016_1845ifx1_r8
GC - 20091026_AA)
JCL - 20100127
I can not use the aspose.slides-2.7.0.jar this will give me an:
java.lang.UnsupportedClassVersionError: (com/aspose/slides/Presentation) bad major version at offset=6
Kind Regards,
Andreas.
Hi Andreas,
Thanks for sharing the information. An issue with ID SLIDESJAVA-31805 already exists in
our issue tracking system to resolve this problem. This thread has also been linked with the same issue, so that you may be automatically notified, once the issue is resolved.
Please use the Aspose.Slides for Java 2.6.0 OR Aspose.Slides for Java 2.5.0. Let us Know, If you have any more queries.
We are sorry for your inconvenience.
Hi,
I had no luck with the 2.6.0 version. The aspose.slides-2.5.0-jdk14.jar works fine with a Java 5 environment.
What is the time frame for a fix?
Kind Regards,
Andreas.
Hi Andreas,
I have verified from our issue tracking system and like to share with you that this issue has been scheduled for week 48th of this year.
Hi,
is it possible to get an update on the status of this issue? Actually for me the latest version of aspose.slides that supports JDK1.5 is aspose.slides-2.5.0-jdk14 which is quite dated now. Is a new aspose-slides release planed soon?
Thanks in advance, kind regards,
Andreas.
Hi Andreas,
Hi,
thanks for the link. To avoid trial and error here - can you please tell me which version is expected to work with a Java 1.5.0 VM? There are just 2 jars in the archive: aspose.slides-2.8.0.jar and aspose.slides-2.8.0-jdk14.jar. I also assume the dependency to log4j is as before?
Kind regards,
Andreas.
Hi
Andreas,
Hi,
sure I will use the 2.8.0 Version and thanks for listing the required libraries.
My question is in regard to which of the 2 jars I should use for a Java 5 (1.5.0) VM. Either
- aspose.slides-2.8.0.jar
- aspose.slides-2.8.0-jdk14.jar.
Kind Regards,
Andreas.
Hi,
I tried it myself. Unfortunately I’m facing the same issue as stated in the initial posting:
With the aspose.slides-2.8.0.jar I get:
cannot access com.aspose.slides.Licenseand when I use aspose.slides-2.8.0-jdk14.jar I get:
bad class file: /lib/build/aspose/aspose-slides.jar(com/aspose/slides/License.class)
class file has wrong version 50.0, should be 49.0
java.lang.NoClassDefFoundError: net/sf/retrotranslator/runtime/java/lang/Enum_
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at com.aspose.slides.obfuscated.bod.(SourceFile:21)
at com.aspose.slides.Presentation.(SourceFile:160)
Hi Andreas,
Hi,
unfortunately this does not help. Please check my previous postings.
Kind Regards,
Andreas.
Hi Andreas,
Hi, any updates on this issue., I too face the same problem when using the latest aspose slides jar with JDK1.5..
Sundhar