Do we need to set license file for each product

We have a valid license and currently we are using Word and PDF do I have to explicitly for each of them or is there a total Product license class I can use?



try {
com.aspose.words.License license = new com.aspose.words.License();
LOGGER.info(“Setting Aspose License”);
license.setLicense(“Aspose.Total.Java.lic”);
} catch (Exception e) {
e.printStackTrace();
LOGGER.error(“Aspose License Failed”, e);
}
try {
com.aspose.pdf.License pdfLicense = new com.aspose.pdf.License();
pdfLicense.setLicense(“Aspose.Total.Java.lic”);
System.out.println(“com.aspose.pdf.License: Valid”);
} catch (Exception e) {
e.printStackTrace();
LOGGER.error(“Aspose com.aspose.pdf.License: Failed”, e);
}

Hi Roshini,


Thank you for contacting support. There is no total product License class. Please note, it is mandatory to apply the license for each single Aspose library by adding a couple of lines of code. Each Aspose library has the License class and you must initialize its object and set license file directory path explicitly or pass stream of the license file by calling SetLicense method. Please note, the Aspose license should be applied before calling any Aspose library feature operation.

A post was split to a new topic: License issue Aspose.Total for Android via Java