Trolltech Home | Qt-jambi-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 1

Qt-jambi-interest Archive, November 2007
making jar files with qt jambi


Message 1 in thread

Hi, I'm new to this list, and just starting to use qt-jambi.

I'm on kubuntu gutsy and want to create a jar package with my program
in and all the necessary files to run from qt-jambi

I just downloaded the qt-jambi package and unpacked it.

I can make a jar with adding qtjambi.jar in the class-path of the
manifest file, but for that to work for other people they also have to
install the qt-jambi package? or is qtjambi.jar enough?



I also followed everything here:
http://doc.trolltech.com/qtjambi-4.3.2_01/com/trolltech/qt/qtjambi-deployment.html
to make a complete jar but I got errors about debug packages not
found,
doesn't find most things like: com/trolltech/qt/*class
qt_system_libs : no such file or directory

I can solve the thing about debug packages by just changing -C lib
libqtjambi_debuglib.so to -C lib libqtjambi.so
but the other two errors I can't solve, any ideas?



I also tried to make a jar with http://fjep.sourceforge.net/ fat jar
eclipse but when trying to run that package I get:

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)

when I run it with verbose-loading and I get this:

Loaded(libQtCore.so.4) in standard way as QtCore
Loaded(libQtGui.so.4) in standard way as QtGui
Already loaded: libQtCore.so.4 skipping it.
Already loaded: libQtGui.so.4 skipping it.
Failed to laod : libcom_trolltech_qt_core.so
Below you will se how we tried to load it:

Going to load: libcom_trolltech_qt_core.so
.. from environment: com.trolltech.qt.library-path
(Skipped, environment was empty)
.. from environment: com.trolltech.qt.internal.jambipath
(Skipped, environment was empty)
.. from classpath:
   Failed with exception:
     java.lang.RuntimeException: Library:
'libcom_trolltech_qt_core.so' could not be resolved
     com.trolltech.qt.Utilities.loadLibrary(Utilities.java:188)
     com.trolltech.qt.Utilities.loadJambiLibrary(Utilities.java:125)
     com.trolltech.qt.core.QtJambi_LibraryInitializer.<clinit>(QtJambi_LibraryInitializer.java:9)
     com.trolltech.qt.core.QAbstractFileEngineHandler.<clinit>(QAbstractFileEngineHandler.java:10)
     com.trolltech.qt.QtJambi_LibraryInitializer.<clinit>(QtJambi_LibraryInitializer.java:29)
     com.trolltech.qt.QtJambiObject.<clinit>(QtJambiObject.java:29)

.. using relative path (com.trolltech.qt.implicit-loading).
.. in standard way.
   Failed with exception:
     java.lang.UnsatisfiedLinkError:
/usr/lib/jni/libcom_trolltech_qt_core_debuglib.so.1.0.0:
libqtjambi_debuglib.so.1: cannot open shared object file: No such file
or directory
     java.lang.ClassLoader$NativeLibrary.load(Native Method)
     java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)
     java.lang.ClassLoader.loadLibrary(ClassLoader.java:1676)
     java.lang.Runtime.loadLibrary0(Runtime.java:823)
     java.lang.System.loadLibrary(System.java:1030)
     com.trolltech.qt.Utilities.loadLibrary(Utilities.java:256)
     com.trolltech.qt.Utilities.loadJambiLibrary(Utilities.java:125)
     com.trolltech.qt.core.QtJambi_LibraryInitializer.<clinit>(QtJambi_LibraryInitializer.java:9)
     com.trolltech.qt.core.QAbstractFileEngineHandler.<clinit>(QAbstractFileEngineHandler.java:10)
     com.trolltech.qt.QtJambi_LibraryInitializer.<clinit>(QtJambi_LibraryInitializer.java:29)
     com.trolltech.qt.QtJambiObject.<clinit>(QtJambiObject.java:29)

.. from environment: java.library.path
   Failed to load libcom_trolltech_qt_core.so from java.library.path

... giving up loading library: libcom_trolltech_qt_core.so
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)


anyone know how to solve one of my problems?

thanks in advance!

Thomas



-- 
 [ signature omitted ] 

Message 2 in thread

Hi

I will go through the steps of creating a executable jar file from the binary 
package.

Start off by creating an empty directory.

Then copy the qtjambi.jar and all the files in the lib directory into it, from 
the QtJambi package.

To do this I did this:
cp ../qtjambi-linux32-gpl-4.3.2_01/qtjambi.jar .
cp ../qtjambi-linux32-gpl-4.3.2_01/lib/* .

Then we want to unpack the qtjambi.jar, do this with the folowing command.
jar -xf qtjambi.jar

Then you can delete the qtjambi.jar and the META-INF that came from the 
qtjambi.jar

Now we have what we need from the package to make an executable jar file for 
Linux (to make one for one of the other platforms, you have to use the 
equivalent files from the other platform specific packages)

Note that the files in the lib folder are compiled in release, so when 
starting your application you should not use: -Dcom.trolltech.qt.debug

Now it is time to add your application to the folder. If your application is 
using a package, then the class files has to be placed int the same folder 
structure as the package. So for the test class I used for this example I 
created a folder: 'com/trolltech/example/' with the class file in it.

Ok, so now we need to create the manifest file. Let's call it manifest and add 
this to it:

Main-Class: com.trolltech.examples.Application

Then the final step, create the jar file. Simply do this:

jar -mcf manifest MyApp.jar *

This will take all files and directories in the current folder and place it in 
the MyApp.jar file (since the manifest file is also there, it will be 
included twice, but you can fix that by moving it out of the folder)

Then the final step is to test it:

java -jar MyApp.jar

You should now see your application. :-)  hope this helps, and let me know if 
it doesn't. And welcome to the list. :-)

Best regards 
	Håvard F

On Tuesday 13 November 2007 18:30, Thomas Coopman wrote:
> Hi, I'm new to this list, and just starting to use qt-jambi.
>
> I'm on kubuntu gutsy and want to create a jar package with my program
> in and all the necessary files to run from qt-jambi
>
> I just downloaded the qt-jambi package and unpacked it.
>
> I can make a jar with adding qtjambi.jar in the class-path of the
> manifest file, but for that to work for other people they also have to
> install the qt-jambi package? or is qtjambi.jar enough?
>
>
>
> I also followed everything here:
> http://doc.trolltech.com/qtjambi-4.3.2_01/com/trolltech/qt/qtjambi-deployme
>nt.html to make a complete jar but I got errors about debug packages not
> found,
> doesn't find most things like: com/trolltech/qt/*class
> qt_system_libs : no such file or directory
>
> I can solve the thing about debug packages by just changing -C lib
> libqtjambi_debuglib.so to -C lib libqtjambi.so
> but the other two errors I can't solve, any ideas?
>
>
>
> I also tried to make a jar with http://fjep.sourceforge.net/ fat jar
> eclipse but when trying to run that package I get:
>
> 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)
>
> when I run it with verbose-loading and I get this:
>
> Loaded(libQtCore.so.4) in standard way as QtCore
> Loaded(libQtGui.so.4) in standard way as QtGui
> Already loaded: libQtCore.so.4 skipping it.
> Already loaded: libQtGui.so.4 skipping it.
> Failed to laod : libcom_trolltech_qt_core.so
> Below you will se how we tried to load it:
>
> Going to load: libcom_trolltech_qt_core.so
> .. from environment: com.trolltech.qt.library-path
> (Skipped, environment was empty)
> .. from environment: com.trolltech.qt.internal.jambipath
> (Skipped, environment was empty)
> .. from classpath:
>    Failed with exception:
>      java.lang.RuntimeException: Library:
> 'libcom_trolltech_qt_core.so' could not be resolved
>      com.trolltech.qt.Utilities.loadLibrary(Utilities.java:188)
>      com.trolltech.qt.Utilities.loadJambiLibrary(Utilities.java:125)
>     
> com.trolltech.qt.core.QtJambi_LibraryInitializer.<clinit>(QtJambi_LibraryIn
>itializer.java:9)
> com.trolltech.qt.core.QAbstractFileEngineHandler.<clinit>(QAbstractFileEngi
>neHandler.java:10)
> com.trolltech.qt.QtJambi_LibraryInitializer.<clinit>(QtJambi_LibraryInitial
>izer.java:29) com.trolltech.qt.QtJambiObject.<clinit>(QtJambiObject.java:29)
>
> .. using relative path (com.trolltech.qt.implicit-loading).
> .. in standard way.
>    Failed with exception:
>      java.lang.UnsatisfiedLinkError:
> /usr/lib/jni/libcom_trolltech_qt_core_debuglib.so.1.0.0:
> libqtjambi_debuglib.so.1: cannot open shared object file: No such file
> or directory
>      java.lang.ClassLoader$NativeLibrary.load(Native Method)
>      java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)
>      java.lang.ClassLoader.loadLibrary(ClassLoader.java:1676)
>      java.lang.Runtime.loadLibrary0(Runtime.java:823)
>      java.lang.System.loadLibrary(System.java:1030)
>      com.trolltech.qt.Utilities.loadLibrary(Utilities.java:256)
>      com.trolltech.qt.Utilities.loadJambiLibrary(Utilities.java:125)
>     
> com.trolltech.qt.core.QtJambi_LibraryInitializer.<clinit>(QtJambi_LibraryIn
>itializer.java:9)
> com.trolltech.qt.core.QAbstractFileEngineHandler.<clinit>(QAbstractFileEngi
>neHandler.java:10)
> com.trolltech.qt.QtJambi_LibraryInitializer.<clinit>(QtJambi_LibraryInitial
>izer.java:29) com.trolltech.qt.QtJambiObject.<clinit>(QtJambiObject.java:29)
>
> .. from environment: java.library.path
>    Failed to load libcom_trolltech_qt_core.so from java.library.path
>
> ... giving up loading library: libcom_trolltech_qt_core.so
> 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)
>
>
> anyone know how to solve one of my problems?
>
> thanks in advance!
>
> Thomas


Message 3 in thread

Thank you!!
this is a life saver.  Very good and clear information, it worked right away!

I suppose it's also possible to make the jar without every file in it, but 
just the files needed?
But if that's too complex, never mind because I'm very happy with what I have 
now.

Thomas

On Wednesday 14 November 2007 09:13:29 Håvard Frøiland wrote:
> Hi
>
> I will go through the steps of creating a executable jar file from the
> binary package.
>
> Start off by creating an empty directory.
>
> Then copy the qtjambi.jar and all the files in the lib directory into it,
> from the QtJambi package.
>
> To do this I did this:
> cp ../qtjambi-linux32-gpl-4.3.2_01/qtjambi.jar .
> cp ../qtjambi-linux32-gpl-4.3.2_01/lib/* .
>
> Then we want to unpack the qtjambi.jar, do this with the folowing command.
> jar -xf qtjambi.jar
>
> Then you can delete the qtjambi.jar and the META-INF that came from the
> qtjambi.jar
>
> Now we have what we need from the package to make an executable jar file
> for Linux (to make one for one of the other platforms, you have to use the
> equivalent files from the other platform specific packages)
>
> Note that the files in the lib folder are compiled in release, so when
> starting your application you should not use: -Dcom.trolltech.qt.debug
>
> Now it is time to add your application to the folder. If your application
> is using a package, then the class files has to be placed int the same
> folder structure as the package. So for the test class I used for this
> example I created a folder: 'com/trolltech/example/' with the class file in
> it.
>
> Ok, so now we need to create the manifest file. Let's call it manifest and
> add this to it:
>
> Main-Class: com.trolltech.examples.Application
>
> Then the final step, create the jar file. Simply do this:
>
> jar -mcf manifest MyApp.jar *
>
> This will take all files and directories in the current folder and place it
> in the MyApp.jar file (since the manifest file is also there, it will be
> included twice, but you can fix that by moving it out of the folder)
>
> Then the final step is to test it:
>
> java -jar MyApp.jar
>
> You should now see your application. :-)  hope this helps, and let me know
> if it doesn't. And welcome to the list. :-)
>
> Best regards
> 	Håvard F
>
> On Tuesday 13 November 2007 18:30, Thomas Coopman wrote:
> > Hi, I'm new to this list, and just starting to use qt-jambi.
> >
> > I'm on kubuntu gutsy and want to create a jar package with my program
> > in and all the necessary files to run from qt-jambi
> >
> > I just downloaded the qt-jambi package and unpacked it.
> >
> > I can make a jar with adding qtjambi.jar in the class-path of the
> > manifest file, but for that to work for other people they also have to
> > install the qt-jambi package? or is qtjambi.jar enough?
> >
> >
> >
> > I also followed everything here:
> > http://doc.trolltech.com/qtjambi-4.3.2_01/com/trolltech/qt/qtjambi-deploy
> >me nt.html to make a complete jar but I got errors about debug packages
> > not found,
> > doesn't find most things like: com/trolltech/qt/*class
> > qt_system_libs : no such file or directory
> >
> > I can solve the thing about debug packages by just changing -C lib
> > libqtjambi_debuglib.so to -C lib libqtjambi.so
> > but the other two errors I can't solve, any ideas?
> >
> >
> >
> > I also tried to make a jar with http://fjep.sourceforge.net/ fat jar
> > eclipse but when trying to run that package I get:
> >
> > 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_Library
> >In itializer.java:10) at
> > com.trolltech.qt.core.QAbstractFileEngineHandler.<clinit>(QAbstractFileEn
> >gi neHandler.java:10) at
> > com.trolltech.qt.QtJambi_LibraryInitializer.<clinit>(QtJambi_LibraryIniti
> >al izer.java:29) at
> > com.trolltech.qt.QtJambiObject.<clinit>(QtJambiObject.java:29)
> >
> > when I run it with verbose-loading and I get this:
> >
> > Loaded(libQtCore.so.4) in standard way as QtCore
> > Loaded(libQtGui.so.4) in standard way as QtGui
> > Already loaded: libQtCore.so.4 skipping it.
> > Already loaded: libQtGui.so.4 skipping it.
> > Failed to laod : libcom_trolltech_qt_core.so
> > Below you will se how we tried to load it:
> >
> > Going to load: libcom_trolltech_qt_core.so
> > .. from environment: com.trolltech.qt.library-path
> > (Skipped, environment was empty)
> > .. from environment: com.trolltech.qt.internal.jambipath
> > (Skipped, environment was empty)
> > .. from classpath:
> >    Failed with exception:
> >      java.lang.RuntimeException: Library:
> > 'libcom_trolltech_qt_core.so' could not be resolved
> >      com.trolltech.qt.Utilities.loadLibrary(Utilities.java:188)
> >      com.trolltech.qt.Utilities.loadJambiLibrary(Utilities.java:125)
> >
> > com.trolltech.qt.core.QtJambi_LibraryInitializer.<clinit>(QtJambi_Library
> >In itializer.java:9)
> > com.trolltech.qt.core.QAbstractFileEngineHandler.<clinit>(QAbstractFileEn
> >gi neHandler.java:10)
> > com.trolltech.qt.QtJambi_LibraryInitializer.<clinit>(QtJambi_LibraryIniti
> >al izer.java:29)
> > com.trolltech.qt.QtJambiObject.<clinit>(QtJambiObject.java:29)
> >
> > .. using relative path (com.trolltech.qt.implicit-loading).
> > .. in standard way.
> >    Failed with exception:
> >      java.lang.UnsatisfiedLinkError:
> > /usr/lib/jni/libcom_trolltech_qt_core_debuglib.so.1.0.0:
> > libqtjambi_debuglib.so.1: cannot open shared object file: No such file
> > or directory
> >      java.lang.ClassLoader$NativeLibrary.load(Native Method)
> >      java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)
> >      java.lang.ClassLoader.loadLibrary(ClassLoader.java:1676)
> >      java.lang.Runtime.loadLibrary0(Runtime.java:823)
> >      java.lang.System.loadLibrary(System.java:1030)
> >      com.trolltech.qt.Utilities.loadLibrary(Utilities.java:256)
> >      com.trolltech.qt.Utilities.loadJambiLibrary(Utilities.java:125)
> >
> > com.trolltech.qt.core.QtJambi_LibraryInitializer.<clinit>(QtJambi_Library
> >In itializer.java:9)
> > com.trolltech.qt.core.QAbstractFileEngineHandler.<clinit>(QAbstractFileEn
> >gi neHandler.java:10)
> > com.trolltech.qt.QtJambi_LibraryInitializer.<clinit>(QtJambi_LibraryIniti
> >al izer.java:29)
> > com.trolltech.qt.QtJambiObject.<clinit>(QtJambiObject.java:29)
> >
> > .. from environment: java.library.path
> >    Failed to load libcom_trolltech_qt_core.so from java.library.path
> >
> > ... giving up loading library: libcom_trolltech_qt_core.so
> > 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_Library
> >In itializer.java:10) at
> > com.trolltech.qt.core.QAbstractFileEngineHandler.<clinit>(QAbstractFileEn
> >gi neHandler.java:10) at
> > com.trolltech.qt.QtJambi_LibraryInitializer.<clinit>(QtJambi_LibraryIniti
> >al izer.java:29) at
> > com.trolltech.qt.QtJambiObject.<clinit>(QtJambiObject.java:29)
> >
> >
> > anyone know how to solve one of my problems?
> >
> > thanks in advance!
> >
> > Thomas



Message 4 in thread

Is there something different to make a jar file for windows, because the 
qtjambi-win-... has an empty lib directory, are there other files I should 
include?

Thomas

On Wednesday 14 November 2007 09:13:29 Håvard Frøiland wrote:
> Hi
>
> I will go through the steps of creating a executable jar file from the
> binary package.
>
> Start off by creating an empty directory.
>
> Then copy the qtjambi.jar and all the files in the lib directory into it,
> from the QtJambi package.
>
> To do this I did this:
> cp ../qtjambi-linux32-gpl-4.3.2_01/qtjambi.jar .
> cp ../qtjambi-linux32-gpl-4.3.2_01/lib/* .
>
> Then we want to unpack the qtjambi.jar, do this with the folowing command.
> jar -xf qtjambi.jar
>
> Then you can delete the qtjambi.jar and the META-INF that came from the
> qtjambi.jar
>
> Now we have what we need from the package to make an executable jar file
> for Linux (to make one for one of the other platforms, you have to use the
> equivalent files from the other platform specific packages)
>
> Note that the files in the lib folder are compiled in release, so when
> starting your application you should not use: -Dcom.trolltech.qt.debug
>
> Now it is time to add your application to the folder. If your application
> is using a package, then the class files has to be placed int the same
> folder structure as the package. So for the test class I used for this
> example I created a folder: 'com/trolltech/example/' with the class file in
> it.
>
> Ok, so now we need to create the manifest file. Let's call it manifest and
> add this to it:
>
> Main-Class: com.trolltech.examples.Application
>
> Then the final step, create the jar file. Simply do this:
>
> jar -mcf manifest MyApp.jar *
>
> This will take all files and directories in the current folder and place it
> in the MyApp.jar file (since the manifest file is also there, it will be
> included twice, but you can fix that by moving it out of the folder)
>
> Then the final step is to test it:
>
> java -jar MyApp.jar
>
> You should now see your application. :-)  hope this helps, and let me know
> if it doesn't. And welcome to the list. :-)
>
> Best regards
> 	Håvard F
>
> On Tuesday 13 November 2007 18:30, Thomas Coopman wrote:
> > Hi, I'm new to this list, and just starting to use qt-jambi.
> >
> > I'm on kubuntu gutsy and want to create a jar package with my program
> > in and all the necessary files to run from qt-jambi
> >
> > I just downloaded the qt-jambi package and unpacked it.
> >
> > I can make a jar with adding qtjambi.jar in the class-path of the
> > manifest file, but for that to work for other people they also have to
> > install the qt-jambi package? or is qtjambi.jar enough?
> >
> >
> >
> > I also followed everything here:
> > http://doc.trolltech.com/qtjambi-4.3.2_01/com/trolltech/qt/qtjambi-deploy
> >me nt.html to make a complete jar but I got errors about debug packages
> > not found,
> > doesn't find most things like: com/trolltech/qt/*class
> > qt_system_libs : no such file or directory
> >
> > I can solve the thing about debug packages by just changing -C lib
> > libqtjambi_debuglib.so to -C lib libqtjambi.so
> > but the other two errors I can't solve, any ideas?
> >
> >
> >
> > I also tried to make a jar with http://fjep.sourceforge.net/ fat jar
> > eclipse but when trying to run that package I get:
> >
> > 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_Library
> >In itializer.java:10) at
> > com.trolltech.qt.core.QAbstractFileEngineHandler.<clinit>(QAbstractFileEn
> >gi neHandler.java:10) at
> > com.trolltech.qt.QtJambi_LibraryInitializer.<clinit>(QtJambi_LibraryIniti
> >al izer.java:29) at
> > com.trolltech.qt.QtJambiObject.<clinit>(QtJambiObject.java:29)
> >
> > when I run it with verbose-loading and I get this:
> >
> > Loaded(libQtCore.so.4) in standard way as QtCore
> > Loaded(libQtGui.so.4) in standard way as QtGui
> > Already loaded: libQtCore.so.4 skipping it.
> > Already loaded: libQtGui.so.4 skipping it.
> > Failed to laod : libcom_trolltech_qt_core.so
> > Below you will se how we tried to load it:
> >
> > Going to load: libcom_trolltech_qt_core.so
> > .. from environment: com.trolltech.qt.library-path
> > (Skipped, environment was empty)
> > .. from environment: com.trolltech.qt.internal.jambipath
> > (Skipped, environment was empty)
> > .. from classpath:
> >    Failed with exception:
> >      java.lang.RuntimeException: Library:
> > 'libcom_trolltech_qt_core.so' could not be resolved
> >      com.trolltech.qt.Utilities.loadLibrary(Utilities.java:188)
> >      com.trolltech.qt.Utilities.loadJambiLibrary(Utilities.java:125)
> >
> > com.trolltech.qt.core.QtJambi_LibraryInitializer.<clinit>(QtJambi_Library
> >In itializer.java:9)
> > com.trolltech.qt.core.QAbstractFileEngineHandler.<clinit>(QAbstractFileEn
> >gi neHandler.java:10)
> > com.trolltech.qt.QtJambi_LibraryInitializer.<clinit>(QtJambi_LibraryIniti
> >al izer.java:29)
> > com.trolltech.qt.QtJambiObject.<clinit>(QtJambiObject.java:29)
> >
> > .. using relative path (com.trolltech.qt.implicit-loading).
> > .. in standard way.
> >    Failed with exception:
> >      java.lang.UnsatisfiedLinkError:
> > /usr/lib/jni/libcom_trolltech_qt_core_debuglib.so.1.0.0:
> > libqtjambi_debuglib.so.1: cannot open shared object file: No such file
> > or directory
> >      java.lang.ClassLoader$NativeLibrary.load(Native Method)
> >      java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)
> >      java.lang.ClassLoader.loadLibrary(ClassLoader.java:1676)
> >      java.lang.Runtime.loadLibrary0(Runtime.java:823)
> >      java.lang.System.loadLibrary(System.java:1030)
> >      com.trolltech.qt.Utilities.loadLibrary(Utilities.java:256)
> >      com.trolltech.qt.Utilities.loadJambiLibrary(Utilities.java:125)
> >
> > com.trolltech.qt.core.QtJambi_LibraryInitializer.<clinit>(QtJambi_Library
> >In itializer.java:9)
> > com.trolltech.qt.core.QAbstractFileEngineHandler.<clinit>(QAbstractFileEn
> >gi neHandler.java:10)
> > com.trolltech.qt.QtJambi_LibraryInitializer.<clinit>(QtJambi_LibraryIniti
> >al izer.java:29)
> > com.trolltech.qt.QtJambiObject.<clinit>(QtJambiObject.java:29)
> >
> > .. from environment: java.library.path
> >    Failed to load libcom_trolltech_qt_core.so from java.library.path
> >
> > ... giving up loading library: libcom_trolltech_qt_core.so
> > 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_Library
> >In itializer.java:10) at
> > com.trolltech.qt.core.QAbstractFileEngineHandler.<clinit>(QAbstractFileEn
> >gi neHandler.java:10) at
> > com.trolltech.qt.QtJambi_LibraryInitializer.<clinit>(QtJambi_LibraryIniti
> >al izer.java:29) at
> > com.trolltech.qt.QtJambiObject.<clinit>(QtJambiObject.java:29)
> >
> >
> > anyone know how to solve one of my problems?
> >
> > thanks in advance!
> >
> > Thomas



Message 5 in thread

thomas wrote:
> Is there something different to make a jar file for windows, because the 
> qtjambi-win-... has an empty lib directory, are there other files I should 
> include?
> 
> Thomas

Hi Thomas,

This follows normal windows conventions. The libraries you are looking 
for (dll's) are located in the /bin folder.

best regards,
Gunnar