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

Qt-jambi-interest Archive, November 2007
Jar export issue


Message 1 in thread

Hello

Sorry if this is a problem answered elsewhere...I've searched through the threads and read the deployment guide -  http://doc.trolltech.com/qtjambi-4.3.2_01/com/trolltech/qt/qtjambi-deployment.html - to no avail.

I'm using eclipse on a linux platform with qtjambi open source.  My project runs beautifully launched from eclipse...however, I'd like to create an executable jar file to run this from my other machines as well.
 
I have the eclipse fat-jar plugin, I have a MANIFEST.FM file in META-INF/ directory of project.  When I export with fat-jar I select my main class then click finish...

Running with java -jar myfatjar.jar

I get a java.lang.UnsatisfiedLinkError : com.trolltech.qt.core.QtJambi_LibraryInitializer. etc etc

Any ideas?

Can anybody give me detailed instructions on deploying?

Thanks for much in advance.
Rich



       
---------------------------------
Never miss a thing.   Make Yahoo your homepage.

Message 2 in thread

Rich, I just asked about the same question also, and got a very good answer. 
I'll redirect you to it:

http://lists.trolltech.com/qt-jambi-interest/2007-11/thread00032-0.html

you'll find a very detailed and good explanation of how to make a jar file.

Thomas

On Wednesday 14 November 2007 21:50:31 Rich Marchman wrote:
> Hello
>
> Sorry if this is a problem answered elsewhere...I've searched through the
> threads and read the deployment guide - 
> http://doc.trolltech.com/qtjambi-4.3.2_01/com/trolltech/qt/qtjambi-deployme
>nt.html - to no avail.
>
> I'm using eclipse on a linux platform with qtjambi open source.  My project
> runs beautifully launched from eclipse...however, I'd like to create an
> executable jar file to run this from my other machines as well.
>
> I have the eclipse fat-jar plugin, I have a MANIFEST.FM file in META-INF/
> directory of project.  When I export with fat-jar I select my main class
> then click finish...
>
> Running with java -jar myfatjar.jar
>
> I get a java.lang.UnsatisfiedLinkError :
> com.trolltech.qt.core.QtJambi_LibraryInitializer. etc etc
>
> Any ideas?
>
> Can anybody give me detailed instructions on deploying?
>
> Thanks for much in advance.
> Rich
>
>
>
>
> ---------------------------------
> Never miss a thing.   Make Yahoo your homepage.