Java KDE/QT Bindings
![](https://seccdn.libravatar.org/avatar/d722c2a83564e018128ea670bf25b7ee.jpg?s=120&d=mm&r=g)
I thought I'd have a look at the Java KDE Bindings in SuSE 8.1 but they don't seem to work. The bindings were installed with YAST and I'm using the Sun jdk 1.4.1. Java generally works perfectly on my system so my java set up must be pretty OK. I've copied qtjava.jar to /usr/lib/j2sdk1.4.1_01/jre/lib/ext and the supplied sample program, ScribbleWindow.java, compiles perfectly. On running the program, though, I get the error "no qtjava in java.library.path" So naturally I think that java can't find the dynamic library (libqtjava) it needs. So I create a script like this : #!/bin/bash LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/kde3/lib export LD_LIBRARY_PATH java ScribbleWindow but now when I run the script I get Exception in thread "main" java.lang.UnsatisfiedLinkError: Native Library /opt/kde3/lib/libqtjava.so.1.0.0 already loaded in another classloader at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1437) at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1397) at java.lang.Runtime.loadLibrary0(Runtime.java:788) at java.lang.System.loadLibrary(System.java:832) at org.kde.qt.qtjava.initialize(qtjava.java:272) at org.kde.qt.qtjava.<clinit>(qtjava.java:283) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:140) at ScribbleWindow.<clinit>(ScribbleWindow.java:302) I have no idea what this error means. Is there anyone out there who has actually tried the java qt bindings? And got them to work? If such a person exists could they let me know how they did it? Best wishes - Ken
participants (1)
-
Kenneth Payne