We’re developing a Java Spring project that relies on Aspose PDF, Words and Imaging, but we’re facing some license issues. In order to load the license (we have an Aspose.Total license), we placed the .lic file in the root folder of our project and, in the application main method, we’re doing the following:
new com.aspose.pdf.License().setLicense("Aspose.Total.Product.Family.lic"); new com.aspose.words.License().setLicense("Aspose.Total.Product.Family.lic"); new com.aspose.imaging.License().setLicense("Aspose.Total.Product.Family.lic");
The first two lines work fine (no errors are generated and the results of the corresponding APIs don’t show the Aspose watermark), but the third one throws the following exception:
class com.aspose.imaging.coreexceptions.FrameworkException: The license signature is invalid. com.aspose.imaging.License$a.a(Unknown Source) com.aspose.imaging.License.setLicense(Unknown Source)
Where are we doing wrong? Can you suggest us how to properly load the license in a Spring application? Is it different for Aspose.Imaging?