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

Qt-jambi-interest Archive, October 2006
qtjambi -> jar & jnlp


Message 1 in thread

I made a small project with qtjambi, then I create a jar file. The jar works
great.

But if I take the qtjambi.jar file and my own jar file, and copy it to
another computer It doesn't work at all. got jre on that computer, so it
should be fine, same version.

Gets message: cannot find the main class, but how can that be when it works
fine on one computer?

And that's when I have both files at same directory. F.eks c:\

Also tried to put the qtjambi.jar in the /ext dir but didn't help.

 

So how should the manifest file look like?

 

Took a jar -tf hello.jar and the output is this:

META-INF/

META-INF/MANIFEST.MF

gui/gui.ui

gui/Ui_gui.class

rive.class

 

Is there something else I have to think about?

 

I also tried with jnlp, then I get the msg java.lang.unsatisfiedlinkError:
etc... on other computers then mine.

 

 

Asgeir


Message 2 in thread

Asgeir wrote:

> I made a small project with qtjambi, then I create a jar file. The jar 
> works great.
>
> But if I take the qtjambi.jar file and my own jar file, and copy it to 
> another computer It doesn’t work at all. got jre on that computer, so 
> it should be fine, same version.
>
> Gets message: cannot find the main class, but how can that be when it 
> works fine on one computer?
>

If you haven't already, you will also need to bundle the native dynamic 
libraries, and the qtjambi.jar file (which will need to be on your class 
path when executing the jar.) If you place the dynamic libraries inside 
the jar-file, you may also need to supply a qt_system_libs file 
containing the names of system specific libraries that your project 
depends on. This will make sure that Qt Jambi loads the libraries from 
inside the jar file.

There's a quick guide to deploying Qt Jambi applications here:

http://doc.trolltech.com/qtjambi-1.0/com/trolltech/qt/qtjambi-deployment.html

> gui/gui.ui
>

UI files are source files, so it's strictly not necessary to bundle them 
in the jar. :-)

-- Eskil