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

Free Support Forum - aspose.com

License file not working for email


We have Aspose.Total.Java.lic license. It is not working for email. I am setting the license as below:
com.aspose.email.License license = new com.aspose.email.License();
try {
} catch (Exception e) {

and license file is located in tomee where bin folder laocated.

Please help me out.


You may try loading license using FileInputStream like as follows:

com.aspose.email.License license = new com.aspose.email.License();		
license.setLicense(new java.io.FileInputStream("Aspose.Email.Java.lic")); 

Moreover, please share what kind of error or exception is thrown and you also need to share your license file for further investigation. You can share license file in a private message, the message button shall appear by clicking on my name.