[Kde-java] ScribbleWindow: NoClassDefFoundError

Stephen Williams sbw25 at cam.ac.uk
Sun Jun 19 03:07:44 CEST 2005


Hi,

I'm trying to get to grips with using java with qt bindings and have a couple 
of small problems. I would be grateful if somebody could point me in the 
right direction.

I've installed both koala and qtjava. Both the .jar files are 
in /use/kde/3.4/lib/java/

How can I add both the .jar files to my classpath? Passing 
"-cp /usr/kde/3.4/lib/java/qtjava.jar" works fine, but as soon as I want to 
pass in two paths like this: 
"-cp /usr/kde/3.4/lib/java/qtjava.jar;/usr/kde/3.4/lib/java/koala.jar", bash 
says that there is not such file or directory (but there clearly is).

Then, why does the kdejava-readme say that to run the program you need to go 
"java Main"? Shouldn't it be "java ScribbleWindow" (with classpath)?

If I just include qtjava.jar in my classpath, ScribbleWindow will compile, but 
java won't run it, outputting: "Exception in thread "main" 
java.lang.NoClassDefFoundError: ScribbleWindow". Why is this the case, as the 
class ScribbleWindow is clearly in ScribbleWindow.java?

Thank you very much for your help to get me going,

Stephen


More information about the Kde-java mailing list