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

Free Support Forum - aspose.com

Aspose Email Java Lic is not loading

Hi I have lic purchased for Aspose Email Java. We are trying to load lic with following code, it’s working with JDK11 but not working in OpenJDK11. It says Failed to set license. Details: Cannot find license ‘Aspose.Email.Java.lic’. Any help is appreciated.
try {
License license = new License();
license.setLicense( asposeEmailLicense);
} catch(Exception e) {
throw new MessagingException("License file is missing: " + e.getLocalizedMessage());
// return null;


The ‘Cannot find license’ exception shows that the setLicense method does not find the license file. Please make sure that the license file exists at specified location.