Free Support Forum - aspose.com

Aspose.Total for Java license issue when using Aspose.Ocr: java.lang.IllegalArgumentException: The license is not valid for this product

Hello,

When I call:

new com.aspose.ocr.License().setLicense("/myPath/Aspose.Total.Java.lic");

I got exception:

java.lang.IllegalArgumentException: The license is not valid for this product.

Other licenses (word, pdf) work.

When I do not initialize the license, I get the following results in the OCR methods:

************* Trial Licenses *************

What’s wrong?

Regards,
Andrew.

@Allcloudspl

Would you kindly share your license file with us in a private message. We will test the scenario in our environment and address it accordingly. You can send a private message by clicking over username and press Blue Message Button.

@Allcloudspl

Please download fixed version of the API i.e. Aspose.OCR for Java 20.5 and try again. In case you still face any issue, please feel free to let us know.