DocumentExplorer problem

Hi, can you help we with starting DocumentExplorer from words 3.0.1 version.


I put Aspose.Words.DocumentExplorer.jar, Aspose.Words.jdk16.jar, itext-1.4.2.jar and testng-5.6-jdk15.jar in one directory.

When I try to run it this is what I get:
C:\Documents and Settings\Debela\Desktop\explorer>java -jar Aspose.Words.DocumentExplorer.jar
Exception in thread “main” java.lang.NoClassDefFoundError: com/aspose/words/DocumentVisitor
Caused by: java.lang.ClassNotFoundException: com.aspose.words.DocumentVisitor
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
Could not find the main class: com.aspose.words.documentexplorer.MainForm. Program will exit.

Can you tell me what I am doing wrong?

Thanks, Ivica.

Hi Ivica,

Thanks for your request. It’s seems that jar generation script is not updated. Will be fixed in the next release. As a workaround you can use this script for launching the demo from its folder:

java -classpath "Aspose.Words.DocumentExplorer.jar;..\..\lib\Aspose.Words.jdk15.jar;..\..\lib\demos-only-libs\itext-1.4.2.jar" com.aspose.words.documentexplorer.MainForm

Best Regards,

Thanks, it is working.

Ivica.