[Qt-jambi-interest] Deploying

Gunnar Sletta gunnar at trolltech.com
Mon Mar 3 09:20:25 CET 2008


Peter Dove wrote:
> Hi,
> 
> I am pretty new to the Mac and Java. I am using netbeans, and have set  
> up Netbeans so that when I run the app from within the IDE it compiles  
> correctly.
> 
> However when I build the app and then try to run it from outside the  
> IDE I get errors. From what I have read I must distribute Jambi inside  
> the app jar file. I have had a look at the 'Deploying QT Jambi  
> Application" document but it doesnt make a great deal of sense to me,  
> due to lack of experience with the Java language.
> 
> Are you able to give me a quick step by step of how to get my deploy  
> my simple little hello world app?

Hi Peter,

What kind of errors?

--

If you are getting java.lang.UnsatisfiedLinkError, it is because java 
cannot find the native libraries. On mac these need to be accessible 
setting DYLD_LIBRARY_PATH=/path/to/jambi/lib. You can debug such problems.

With Qt Jambi 4.4 you will have a .jar file including the native 
libraries that you can simply include in your classpath and it will work.

--

If you are getting crashes it is most likely because you forgot to start 
the JVM with the option "-XstartOnFirstThread"

--

I also posted this thread some time ago, illustrating how to use the Mac 
OS X tool JarBundler to create .app files.

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

best regards,
Gunnar


More information about the Qt-jambi-interest mailing list