Java5 which aspose.slides*.jar to use

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,


The most latest version with JDK 1.4 and above support is Aspose.Slides for Java 2.8.0. You may download it from attachment here and if there is still issue kindly share with us.

Many Thanks,

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,


You may also try Aspose.Slides for Java 2.6.0 and Aspose.Slides for Java 2.7.0 as well. But I would suggest you to use Aspose.Slides for Java 2.8.0, the same that I have shared with you earlier. You are right that you will also be needing log4g and dom4j-1.6.1 jar files as well, that you can use from earlier release.

Many Thanks,

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
or
  • 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.License
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
and when I use aspose.slides-2.8.0-jdk14.jar I get:

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,


Please use aspose.slides-2.8.0-jdk14.jar with Java 1.5.

Many Thanks,

Hi,

unfortunately this does not help. Please check my previous postings.


Kind Regards,

Andreas.

Hi Andreas,


I am sorry for your inconvenience regarding the issue. I am setting up the Java 1.5 environment on my end to further verify and investigate the issue. I’ll share the information with you ASAP.

Many Thanks,

Hi, any updates on this issue., I too face the same problem when using the latest aspose slides jar with JDK1.5..

Sundhar

Hi Sundhar,


Please accept my apologies for the delay.

I have observed the issue shared and an issue with ID SLIDESJAVA-33145 has been created to resolve this issue. We are hopeful to get this issue resolved as soon as possible. We will share the information with you once the issue will be resolved.

Thanks and Regards,

The issues you have found earlier (filed as SLIDESJAVA-33145) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.