Free Support Forum - aspose.com

Enterprise License File Issue (Site Small Business)

Hi,

Trust that you are well.

We've recently purchased the Aspose Total Java Suite.

We’ve received the License File which we're using in

our code.

However, the License File is interpreted as an Evaluation

License, when working with any of the APIs we still get

the Evaluation Inclusion on all Documents and Emails.

Please advise what else we have to do besides just

pointing to the License File in our code.

Please treat this matter as urgent.


Sample Code:

private void setLicense() {
try {
License license = new License();
license.setLicense(licenceFolder + licenseFilename);
} catch (Exception ex) {
System.out.println(ex.getMessage());
}
}

Where licenseFilename points to: Aspose.Total.Java.lic

Thanks.

/* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0cm 5.4pt 0cm 5.4pt; mso-para-margin:0cm; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:"Times New Roman"; mso-fareast-theme-font:minor-fareast; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin; mso-bidi-font-family:"Times New Roman"; mso-bidi-theme-font:minor-bidi;}

<![endif]–>

Hi Eugene,


Thank you for choosing Aspose as part of your solutions.

While setting the license in your application, there are just a few points that need to be kept in mind:

1) License should be set before any call to Aspose API products.

2) If you are using multiple Aspose products in your application, you need to set the license for each product individually. For example, if you are using Aspose.Words and Aspose.Email, the license needs to be set for both individually as follows:


com.aspose.email.License license = new com.aspose.email.License();


license.setLicense(“K://Aspose.Total.java.lic”);


com.aspose.words.License license2 = new com.aspose.words.License();


license2.setLicense(“K://Aspose.Total.java.lic”);

You can also check the Expiry date of your license by opening it in a Notepad file (please do not change any fields in this file) and see if it is valid or not. Please share with us if you are already taking care of these points and the problem still persists.