Never mind, there was an error in my scala code. Now everything works fine again!
On Wed, Nov 5, 2008 at 14:51, Thomas Coopman <[EMAIL PROTECTED]>wrote: > Hi, > > I'm trying to run qt-jambi with scala and I've succeeded before but no it > won't work. > > I'm trying to run scala with this command: > scala -Dcom.trolltech.qt.verbose-loading=true -cp > ~/lib/qtjambi/qtjambi-linux64-gpl-4.4.3_01/qtjambi-4.4.3_01.jar:. > main.FunctieVerdelingGui > > > LD_LIBRARY_PATH=:/home/thomas/lib/qtjambi/qtjambi-linux64-gpl-4.4.3_01/lib:. > > this is the output of the command > > > No 'qtjambi-deployment.xml' found in classpath, loading libraries via > 'java.library.path' > > > Loading library: 'libQtCore.so.4'... > - using 'java.library.path' > - ok, path was: > /home/thomas/lib/qtjambi/qtjambi-linux64-gpl-4.4.3_01/lib/libQtCore.so.4 > > > Loading library: 'libqtjambi.so'... > - using 'java.library.path' > - ok, path was: > /home/thomas/lib/qtjambi/qtjambi-linux64-gpl-4.4.3_01/lib/libqtjambi.so > > > Loading library: 'libQtCore.so.4'... > - using 'java.library.path' > - ok, path was: > /home/thomas/lib/qtjambi/qtjambi-linux64-gpl-4.4.3_01/lib/libQtCore.so.4 > > > Loading library: 'libcom_trolltech_qt_core.so'... > - using 'java.library.path' > - ok, path was: > /home/thomas/lib/qtjambi/qtjambi-linux64-gpl-4.4.3_01/lib/libcom_trolltech_qt_core.so > > > Loading library: 'libQtGui.so.4'... > - using 'java.library.path' > - ok, path was: > /home/thomas/lib/qtjambi/qtjambi-linux64-gpl-4.4.3_01/lib/libQtGui.so.4 > > > Loading library: 'libcom_trolltech_qt_gui.so'... > - using 'java.library.path' > - ok, path was: > /home/thomas/lib/qtjambi/qtjambi-linux64-gpl-4.4.3_01/lib/libcom_trolltech_qt_gui.so > > No 'qtjambi-deployment.xml' found in classpath, loading libraries via > 'java.library.path' > > Exception in thread "main" java.lang.ExceptionInInitializerError > at com.trolltech.qt.QtJambiObject.<clinit>(QtJambiObject.java:57) > at java.lang.Class.forName0(Native Method) > at java.lang.Class.forName(Class.java:264) > at scala.tools.nsc.ObjectRunner$.findClass(ObjectRunner.scala:29) > at scala.tools.nsc.ObjectRunner$.run(ObjectRunner.scala:65) > at > scala.tools.nsc.MainGenericRunner$.main(MainGenericRunner.scala:161) > at scala.tools.nsc.MainGenericRunner.main(MainGenericRunner.scala) > Caused by: java.lang.RuntimeException: Loading library failed, progress so > far: > No 'qtjambi-deployment.xml' found in classpath, loading libraries via > 'java.library.path' > > Loading library: 'libQtCore.so.4'... > - using 'java.library.path' > > at > com.trolltech.qt.internal.NativeLibraryManager.loadNativeLibrary(NativeLibraryManager.java:428) > at > com.trolltech.qt.internal.NativeLibraryManager.loadQtLibrary(NativeLibraryManager.java:352) > at com.trolltech.qt.Utilities.loadQtLibrary(Utilities.java:137) > at com.trolltech.qt.Utilities.loadQtLibrary(Utilities.java:133) > at > com.trolltech.qt.QtJambi_LibraryInitializer.<clinit>(QtJambi_LibraryInitializer.java:53) > ... 7 more > Caused by: java.lang.UnsatisfiedLinkError: Native Library > /home/thomas/lib/qtjambi/qtjambi-linux64-gpl-4.4.3_01/lib/libQtCore.so.4 > already loaded in another classloader > at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1732) > at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1663) > at java.lang.Runtime.load0(Runtime.java:787) > at java.lang.Runtime.load(Runtime.java:775) > at > com.trolltech.qt.internal.NativeLibraryManager.loadLibrary_helper(NativeLibraryManager.java:475) > at > com.trolltech.qt.internal.NativeLibraryManager.loadNativeLibrary(NativeLibraryManager.java:423) > ... 11 more > > If I try with an empty LD_LIBRARY_PATH but with qtjambi-linux64-gcc in the > classpath > like this: > scala -Dcom.trolltech.qt.verbose-loading=true -cp > ~/lib/qtjambi/qtjambi-linux64-gpl-4.4.3_01/qtjambi-4.4.3_01.jar:~/lib/qtjambi/qtjambi-linux64-gpl-4.4.3_01/qtjambi-linux64-gcc-4.4.3_01.jar:. > main.FunctieVerdelingGui > > I get the error that libqtjambi.so was not found > ... > Caused by: java.lang.RuntimeException: Library 'libqtjambi.so' could was > notfound in > 'java.library.path'=/usr/lib64/jvm/java-1.6.0-openjdk-1.2_b09/jre/lib/amd64/server:/usr/lib64/jvm/java-1.6.0-openjdk-1.2_b09/jre/lib/amd64:/usr/lib64/jvm/java-1.6.0-openjdk-1.2_b09/jre/../lib/amd64::/usr/java/packages/lib/amd64:/lib:/usr/lib:/usr/lib64:/lib64 > > I have run qt-jambi with scala before and I'm pretty sure it was with these > commands, but I don't know what's wrong now. Does anyone know what's wrong? > > Thanks!! > > -- > Thomas Coopman > [EMAIL PROTECTED] > -- Thomas Coopman [EMAIL PROTECTED]
_______________________________________________ Qt-jambi-interest mailing list [email protected] http://lists.trolltech.com/mailman/listinfo/qt-jambi-interest
