Rizado
March 3rd, 2007, 11:49 AM
I've been trying to get some of the qtjava examples to run but it just wont. When I try to compile ScribbleWindow I do:
javac -cp /usr/share/java/qtjava.jar ScribbleWindow.javaIt seem to work and there's no error messages but when trying to run it with
java -cp /usr/share/java/qtjava.jar ScribbleWindow All I get is:
Exception in thread "main" java.lang.NoClassDefFoundError: ScribbleWindow
I've tried many examples but none of them work. They all give me the same error message. (Except for the last word) Does anyone know how to solve this?
EDIT: Suddenly it works! I made a link from /usr/lib/jni/libqtjava to /usr/lib and I can compile it in NetBeans now. But it still doesn't work by running javac and java.
javac -cp /usr/share/java/qtjava.jar ScribbleWindow.javaIt seem to work and there's no error messages but when trying to run it with
java -cp /usr/share/java/qtjava.jar ScribbleWindow All I get is:
Exception in thread "main" java.lang.NoClassDefFoundError: ScribbleWindow
I've tried many examples but none of them work. They all give me the same error message. (Except for the last word) Does anyone know how to solve this?
EDIT: Suddenly it works! I made a link from /usr/lib/jni/libqtjava to /usr/lib and I can compile it in NetBeans now. But it still doesn't work by running javac and java.