Free Support Forum -

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 {
} catch (Exception e) {

image.png (2.4 KB)


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.


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