Free Support Forum -

Java 1.5 Charset.defaultCharset() method used and gives error running in 1.4.2 env

I just downloaded the evaluation of Aspose.Cells for java. From the downloaded zip file I extracted the two zips and then extracted the contents from JDK 1.4 zip file. I then included all the jar files in the lib directory into my classpath. I created a simple workbook and attempted to save it in the FileFormatType.SPREADSHEETML format. The following exception was thrown:

java.lang.NoSuchMethodError: java.nio.charset.Charset.defaultCharset()Ljava/nio/charset/Charset;
at Source)
at Source)

I'm running the using the JRE 1.4.2, and I call the same method like this:"C:/Aspose.xml", FileFormatType.SPREADSHEETML);

Did I do something wrong?

Thanks Dave


Please the fix in <A href="</A></P>

Thanks the fix worked great.