Free Support Forum - aspose.com

Exception in setLicense() method

Hi Guys.

We have purchased Aspose.BarCode license. But when I try to use setLicense method the java exception give out.

I know that it occurs because I use JVM 1.4, and JVM 1.4 hasn't method replace(CharSequence,CharSequence). But if I run code without setuping license then it properly work ( in the evaluation stage ).

I know that Aspose needs JVM 1.5, but for us very important start Aspose at 1.4.

Can you help me?

Best regards,

Andrey.

Exception:

java.lang.NoSuchMethodError: java.lang.String.replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;

at com.aspose.barcode.d.a(Unknown Source)

at com.aspose.barcode.d.a(Unknown Source)

at com.aspose.barcode.d.a(Unknown Source)

at com.aspose.barcode.d.a(Unknown Source)

at com.aspose.barcode.d.a(Unknown Source)

at com.aspose.barcode.License.setLicense(Unknown Source)

at AsposeTest.main(AsposeTest.java:26)

Exception in thread "main"

Hello andsazhin,

Thanks for your post!

Please send your license to guangzhou#aspose.com, we'll provide you a customized version for JDK 1.4 ASAP.

Thanks

Hi,

I have sent you the license.

If you can make 1.4 solution, then it is very superb!

Andrey