Hi,
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 {
license.setLicense("…/Aspose.Total.Java.lic");
} catch (Exception e) {
e.printStackTrace();
}
and license file is located in tomee where bin folder laocated.
Please help me out.
@sheoran531994
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.