Hello,
Thank you for your inquiry.
Based on your description, I suspect that you did not import Spire.Office through Maven. Please note that starting from
Spire.Office for Java Version: 9.1.4, the jar file for Spire.Doc is no longer included in the Spire.Office jar file. When importing Spire.Office via Maven, it automatically includes the jar file for Spire.Doc. However, if you are manually importing the jars, you will need to download
Spire.Doc separately and import its jar file along with the others.
Regarding the licensing file, please refer to the code snippet below as guidance:
- Code: Select all
com.spire.doc.license.LicenseProvider.setLicenseKey("OfficeLicenseKey");
com.spire.doc.license.LicenseProvider.loadLicense();
com.spire.license.LicenseProvider.setLicenseKey("OfficeLicenseKey");
com.spire.license.LicenseProvider.loadLicense();
Sincerely,
Annika
E-iceblue support team