Free Support Forum - aspose.com

License error at time of setting

Getting error in license setting

// Initialize License Instance
com.aspose.pdf.License license = new com.aspose.pdf.License();
// Call setLicense method to set license
try {
license.setLicense(“Aspose.Total.Java.lic”);
} catch (Exception e) {
e.printStackTrace();
}

image.png (2.4 KB)

@praveen043

Thank you for contacting support.

Please ensure that the license exists on class path while setting the license, you may also try to specify full path to license file, as under. Moreover, you can also Set License from Stream Object and then share your kind feedback with us.

license.setLicense("D:\\License\\Files\\Aspose.Total.Java.lic");

We hope this will be helpful. Please feel free to contact us if you need any further assistance.