We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Temporary license for Java Pdf library is not working


Our company Skyhigh Networks have got the trial license for the Aspose Java Pdf library. However the trial license are not working. The following is the exception thrown

Exception in thread "main" java.lang.Exception: The license is not valid for this product.

at com.aspose.pdf.kit.License.a(Unknown Source)

at com.aspose.pdf.kit.License.setLicense(Unknown Source)

at com.shn.pdf.PdfDecryptor.(PdfDecryptor.java:47)

at com.shn.pdf.PdfDecryptor.main(PdfDecryptor.java:244)

The following is the code which throws exception.

License lic = new License();

System.out.println("License file is " + licFile);

lic.setLicense(new FileInputStream(licFile));

I also attached the trial license given to us.

Hi Surendra Kumar,

Thanks for contacting support.

It looks like you are trying to use the license of Aspose.Pdf for Java with legacy Aspose.Pdf.Kit for Java. Please note that this license will only work with auto-ported version of Aspose.Pdf for Java (versions greater than 4.0.0). Also, I cannot find the license with your previous post. Can you please double check at your end.

In case you have downloaded the latest release of Aspose.Pdf for Java 9.3.0, please follow the instructions specified over following link for Licensing