How to apply new licenses

Dear Support,

We have renewed the “Aspose.Cells.lic” and “Aspose.Words.lic”
the steps that we did:

  1. we have downloaded the files from the site that is attached to the invoice.
  2. we replaced the new files with the old ones, and we notices that the naming of the files is different before we had file names “Aspose.Cells.lic” and “Aspose.Words.lic” but now we got files with Java and the 3.0.

This is the message that we got when we applied the files:
The signature is invalid.java.lang.IllegalStateException: The signature is invalid.

we appreciate your help to resolve the issue.

Thanks.

@rstntomcecil1 The problem might occur because new license is used with old version of Aspose.Words. The licensing mechanism was improving since 17.10.0 version. So the new licenses might not work with old versions of Aspose.Words. So you should use your old license with the old version of Aspose.Words and new license with the new version.

@alexey.noskov Thank you for your answer, but we don’t know how to do that ( using the new license with the new version) can you please explain

@rstntomcecil1 You should apply license in your code, like this:

com.aspose.words.License license = new com.aspose.words.License();
license.setLicense("Aspose.Words.Java.lic");

I suspect, this code is already there in your code, but your project uses the old version of Aspose.Words and the new license. If you would like to continue using the old version of Aspose.Words, you can use your old license.
Please see our documentation to learn more about applying the license:
https://docs.aspose.com/words/java/licensing/