[email protected] wrote: > Re, > > And I have forgotten the path of libQtCore : > -=[animat...@noname]=(/)> sudo find -name "libQtCore.so.4" > ./usr/lib/qt4/libQtCore.so.4
If you installed a binary package, you should set the environment using the set_qtjambi_env.sh file. This will set up the correct classpath. You should have qtjambi-4.5.0.jar and qtjambi-linux32-gcc-4.5.0.jar in your path. libQtCore.so.4 is inside the latter one and is loaded by Qt Jambi. See http://doc.trolltech.com/qtjambi-4.5.0_01/com/trolltech/qt/qtjambi-installation.html#manually-launching-qt-jambi-applications for some more details. You should never make use of the system Qt, as this may be binary incompatible with the libraries shipped with Qt Jambi and may result in crashes. Only when you build Qt Jambi from source can you consider using these. best regards, Gunnar > Thanks! > > On 7/27/09, [email protected] <[email protected]> wrote: >> Hello ! >> >> I am trying the Hello World example, but when I try to run it, I get >> this message : >> >> -=[animat...@noname]=(~/Documents/workspace/examples/tutorial)> java >> HelloWorld <(21:45:50)> >> Exception in thread "main" java.lang.ExceptionInInitializerError >> at com.trolltech.qt.QtJambiObject.<clinit>(QtJambiObject.java:58) >> at HelloWorld.main(HelloWorld.java:9) >> 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:429) >> at >> com.trolltech.qt.internal.NativeLibraryManager.loadQtLibrary(NativeLibraryManager.java:353) >> at com.trolltech.qt.Utilities.loadQtLibrary(Utilities.java:138) >> at com.trolltech.qt.Utilities.loadQtLibrary(Utilities.java:134) >> at >> com.trolltech.qt.QtJambi_LibraryInitializer.<clinit>(QtJambi_LibraryInitializer.java:54) >> ... 2 more >> Caused by: java.lang.RuntimeException: Library 'libQtCore.so.4' was >> not found in >> 'java.library.path'=/opt/sun-jdk-1.6.0.14/jre/lib/i386/server:/opt/sun-jdk-1.6.0.14/jre/lib/i386:/opt/sun-jdk-1.6.0.14/jre/../lib/i386:/usr/share/qtjambi-4/lib/:.:/usr/java/packages/lib/i386:/lib:/usr/lib >> at >> com.trolltech.qt.internal.NativeLibraryManager.loadLibrary_helper(NativeLibraryManager.java:484) >> at >> com.trolltech.qt.internal.NativeLibraryManager.loadNativeLibrary(NativeLibraryManager.java:424) >> ... 6 more >> >> My classpath and ld_library_path : >> >> -=[animat...@noname]=(/)> echo $CLASSPATH >> <(22:06:49)> >> /usr/share/qtjambi-4/lib/qtjambi.jar:/usr/share/qtjambi-4/lib/qtjambi-examples.jar:/usr/share/qtjambi-4/lib/qtjambi-designer.jar:/usr/share/qtjambi-4/lib/ant-qtjambi.jar:. >> -=[animat...@noname]=(/)> echo $LD_LIBRARY_PATH >> <(22:15:55)> >> /usr/share/qtjambi-4/lib/:. >> >> Do you know how to solve the problem ? >> >> >> Thanks! >> > _______________________________________________ > Qt-jambi-interest mailing list > [email protected] > http://lists.trolltech.com/mailman/listinfo/qt-jambi-interest _______________________________________________ Qt-jambi-interest mailing list [email protected] http://lists.trolltech.com/mailman/listinfo/qt-jambi-interest
