| Trolltech Home | Qt-jambi-interest Home | Recent Threads | All Threads | Author | Date | |
| All threads index page 1 | |
Hi all,
I created a library package for Linux with the Qt
libraries and my application but unfortunately it
doesn't seem to work on Ubuntu. Here is the exception:
$ ./run.sh
Loaded from: /usr/lib
Loaded from: /usr/lib
Already loaded: libQtCore.so.4 skipping it.
Already loaded: libQtGui.so.4 skipping it.
Exception in thread "main"
java.lang.UnsatisfiedLinkError:
com.trolltech.qt.core.QtJambi_LibraryInitializer.__qt_initLibrary()V
at
com.trolltech.qt.core.QtJambi_LibraryInitializer.__qt_initLibrary(Native
Method)
at
com.trolltech.qt.core.QtJambi_LibraryInitializer.<clinit>(QtJambi_LibraryInitializer.java:10)
at
com.trolltech.qt.core.QAbstractFileEngineHandler.<clinit>(QAbstractFileEngineHandler.java:10)
at
com.trolltech.qt.QtJambi_LibraryInitializer.<clinit>(QtJambi_LibraryInitializer.java:29)
at
com.trolltech.qt.QtJambiObject.<clinit>(QtJambiObject.java:29)
The weird thing is that the exact same package works
perfectly on Oracle Unbreakable Linux 5 (aka Red Hat
5), but not on Ubuntu. It seems to me that it tries to
load the libraries from /usr/lib instead of from the
JAR file. Is there a way to specify the order of
searching for the libraries ? The documentation seems
to be stating that first the libraries are loaded from
the classpath, but this doesn't seem to be true...
Thanks,
Danny
____________________________________________________________________________________
Never miss a thing. Make Yahoo your home page.
http://www.yahoo.com/r/hs
Hi, when looking into this we found a small problem with the verbose-loading that made it not so verbose :-) I have attached the updated class that should give you more information on what is failing during loading. You need to replace the com/trolltech/qt/Utilities.class in the qtjambi.jar file with the one that I have attached. Hope this will help you debug the problem. Best regards Håvard Frøiland On Wednesday 21 November 2007 15:34, Danny Sporea wrote: > Hi all, > > I created a library package for Linux with the Qt > libraries and my application but unfortunately it > doesn't seem to work on Ubuntu. Here is the exception: > > $ ./run.sh > Loaded from: /usr/lib > Loaded from: /usr/lib > Already loaded: libQtCore.so.4 skipping it. > Already loaded: libQtGui.so.4 skipping it. > Exception in thread "main" > java.lang.UnsatisfiedLinkError: > com.trolltech.qt.core.QtJambi_LibraryInitializer.__qt_initLibrary()V > at > com.trolltech.qt.core.QtJambi_LibraryInitializer.__qt_initLibrary(Native > Method) > at > com.trolltech.qt.core.QtJambi_LibraryInitializer.<clinit>(QtJambi_LibraryIn >itializer.java:10) at > com.trolltech.qt.core.QAbstractFileEngineHandler.<clinit>(QAbstractFileEngi >neHandler.java:10) at > com.trolltech.qt.QtJambi_LibraryInitializer.<clinit>(QtJambi_LibraryInitial >izer.java:29) at > com.trolltech.qt.QtJambiObject.<clinit>(QtJambiObject.java:29) > > The weird thing is that the exact same package works > perfectly on Oracle Unbreakable Linux 5 (aka Red Hat > 5), but not on Ubuntu. It seems to me that it tries to > load the libraries from /usr/lib instead of from the > JAR file. Is there a way to specify the order of > searching for the libraries ? The documentation seems > to be stating that first the libraries are loaded from > the classpath, but this doesn't seem to be true... > > Thanks, > Danny > > > > > > ___________________________________________________________________________ >_________ Never miss a thing. Make Yahoo your home page. > http://www.yahoo.com/r/hs
Attachment:
Attachment:
Utilities.class
Attachment:
Attachment:
Utilities.class
Description: application/java
Message 3 in thread
Ups, sorry. Sent out the wrong class file. This should be the correct one.
To help you futher, it would be good to know more about your package. How it
is structures, how you set the classpath, and so on. Feel free to send it to
me so I can have a look at it.
Also, when you drop in the new class, you should get more output. This is also
valuable information that you can send.
Hope you didn't waist any time on the other classfile.
Best regards
HÃvard F
On Thursday 22 November 2007 10:12, HÃvard FrÃiland wrote:
> Hi, when looking into this we found a small problem with the
> verbose-loading that made it not so verbose :-)
>
> I have attached the updated class that should give you more information on
> what is failing during loading. You need to replace the
> com/trolltech/qt/Utilities.class in the qtjambi.jar file with the one that
> I have attached.
>
> Hope this will help you debug the problem.
>
> Best regards
> HÃvard FrÃiland
>
Description: application/java