Converting document Error

Hi,


I am having an issue generating a document. I have JDK 6 installed on a Solaris Environment.

When i try and generate the document i get the following error:

convert.sh tchr:1521:hrdb aspose aspose WORDS hr_document blob_content document_id 0000000655 true
CONVERTER: setting words license
Exception in thread “main” java.lang.NoClassDefFoundError: com/aspose/words/License
at com.corehr.document.CoreHRDocumentConverter.getLicense(CoreHRDocumentConverter.java:59)
at com.corehr.document.CoreHRDocumentConverter.convertDocument(CoreHRDocumentConverter.java:214)
at com.corehr.document.ConvertADocument.main(ConvertADocument.java:45)
Caused by: java.lang.ClassNotFoundException: com.aspose.words.License
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
… 3 more

Has anyone seen this error before? Is Aspose.words compatable with Solaris OS?

Regards,
Mike

Hi,


I am having an issue generating a document. I have JDK 6 installed on a Solaris Environment.

When i try and generate the document i get the following error:

convert.sh tchr:1521:hrdb aspose aspose WORDS hr_document blob_content document_id 0000000655 true
CONVERTER: setting words license
Exception in thread “main” java.lang.NoClassDefFoundError: com/aspose/words/License
at com.corehr.document.CoreHRDocumentConverter.getLicense(CoreHRDocumentConverter.java:59)
at com.corehr.document.CoreHRDocumentConverter.convertDocument(CoreHRDocumentConverter.java:214)
at com.corehr.document.ConvertADocument.main(ConvertADocument.java:45)
Caused by: java.lang.ClassNotFoundException: com.aspose.words.License
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
… 3 more

Has anyone seen this error before? Is Aspose.words compatable with Solaris OS?

Regards,
Mike

Hi,

Thanks for your posting and using Aspose APIs.

It seems from your exception that your issue is related to Aspose.Words and not related to Aspose.Cells. We have therefore moved your thread to Aspose.Words forum.

Oh sorry about that and thanks very much.

Hi there,

Thanks for your inquiry. NoClassDefFoundError in Java comes when Java Virtual Machine is not able to find a particular class at runtime which was available during compile time.


Please remove reference to old Aspose.Words for Java from your project, clean the project (any IDE cache etc.) and add reference again in your project to the new ‘aspose-words-16.2.0-jdk16.jar’. Hope this helps you.

Please read following link for your kind reference.