UnsupportedClassVersionError

Hi,

During December 2007, we purchased Aspose.Cells license. We have used the software for Excel programming in Office 2003 environment. Recently the machine on which we deployed the license got formatted by taking the back up of the previous folders. While running the utility developed using Aspose.cells now we are facing the following error.

C:\aspose>java DeleteExcelDuplicateRows PRW_07222009.xlsx 2 8 12

Exception in thread "main" java.lang.UnsupportedClassVersionError: com/aspose/ce

lls/License (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:12

3)

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)

at java.lang.ClassLoader.loadClass(ClassLoader.java:289)

at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)

at java.lang.ClassLoader.loadClass(ClassLoader.java:235)

at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)

Java environment we are using is: j2sdk1.4.2_16

Could you please let me know the reason for this asap?

We have Aspose.Cells invoice details.

Invoice Number: 071222093224

Invoice Date: Saturday, December 22, 2007

Regards,

Krishna Korrapati

Hi,

Thank you for sharing the exception details.

It should be no problem with the component jar file(s) in any of its release / fix on the Java environment. For your info, in Aspose.Cells for JDK1.4, class versions are 48, not 49 (as mentioned in your exception stack). We think maybe you are using the version provided for JDK1.5 and running it with JDK1.4. Please make sure that you are using the right version. We provide two versions in every release archive, one is for JDK1.5 and other is for JDK1.4, you should use the one for JDK1.4 as per your system environment.

Thank you.

Good. It worked well, but we entered into another issue i.e OutOfMemoryError. We are working on it using

java -Xms128m -Xmx256m

options in the command prompt.

Regards,

Krishna

Hi Krishna,

Thank you for considering Aspose.

Well, for memory issue, you have to make sure that you have given enough memory to JVM. I think you may try command lines, java -Xms512m -Xmx512m (or allot more memory appropriately) to fix the out of memory issue.

Thank You & Best Regards,