License applied. Getting java.lang.IncompatibleClassChangeError

we’ve just posted it to Oracle support, will let you know how it goes

Thanks

Ok, now it comes up with another error message:

java.lang.ClassCastException
at javax.xml.parsers.DocumentBuilderFactory.newInstance(Unknown Source)
at com.aspose.words.wy.b(License.java:270)
at com.aspose.words.wy.a(License.java:242)
at com.aspose.words.License.setLicense(License.java:143)

same stuff - no Licence class - all good, if there is

License license = new License();
license.setLicense("/tmp/Aspose.Words.lic");

then I’m gettting error…

Hello

Thanks for your request. Could you please try using the following code:

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

Best regards,

Normally such an error means you have more than one version of that class visible to your application. Please ensure only one version of the JDK is being used and only the required libraries are referenced in your application.

Best regards,

Problem solved by loading xerces_2_5_0.jar and xml-apis.jar into the database.

Thank you

Hi

It is perfect, that you already found the solution. If you need more assistance, we will be glad to help you.

Best regards,