I have a license file we purchased from Aspose and it worked great locally when I call setLicense() with the license file.
Thank you for choosing Aspose.
We tested the License.setLicense method with jdk version 126.96.36.199 and latest Aspose.Note for Java version 16.12.0, but were not able to observe any such issue as reported by you. However, you may check the following possibilities to ensure that the license file is accessible to your application on the server,
- Please make sure that your application is able to locate your license file i.e. path is correct and is readable by your application on server. You may check this by accessing the file simply using a FileInputStream object.
- Secondly, please check if your server has proper rights to access the file.
If you still face issues, please share your server, OS details & type of application (Web, Executable jar etc.) with us. We’ll analyze the issue further and guide you appropriately.
Thank you for the feedback. Any such issue hasn’t been reported with setting license files. Can you please share a sample maven project along with the steps to reproduce the issue at our end. We’ll investigate the issue further with your provided artifacts to assist you accordingly.