Hello,

I wrote a small Jambi application using the Eclipse IDE. Everything works  
fine, if I start the application from inside Eclipse. If I try to start  
the application from the command line, I get the following error:

C:\>java -Dcom.trolltech.qt.verbose-loading=true -cp qtjambi.jar -jar  
application.jar
Exception in thread "main" java.lang.NoClassDefFoundError:  
com/trolltech/qt/gui/QMainWindow
         at java.lang.ClassLoader.defineClass1(Native Method)
         at java.lang.ClassLoader.defineClass(Unknown Source)
         at java.security.SecureClassLoader.defineClass(Unknown Source)
         at java.net.URLClassLoader.defineClass(Unknown Source)
         at java.net.URLClassLoader.access$100(Unknown Source)
         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)

I have included the files from the qt_system_libs in the root of the jar,  
but this didn't help either. I don't know, what I'm missing here.

Thank you, Robert

PS: I use the Jambi 4.3.3_01 (open source version), Java version is  
1.5.0_09

_______________________________________________
Qt-jambi-interest mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-jambi-interest

Reply via email to