Florian Hübner wrote: > Hello everyone, > I tried to run a Qt Jambi GUI via Webstart on Mac Os X but despite > adding "-XstartOnFirstThread" to the parameters it wont run (It runs > fine on Windows and Linux). > I also tried to modify the "LauncherOSX.java" from the Jambi demo with > the same results, I always end up with a huge crash log like the one > attached at the end of this mail. > > Any clues what could have went wrong here? > Hi Florian,
Does our webstart work for you? I see you have three threads named AWT-something plus the Java2D disposer. Are you doing Swing / AWT stuff in your app too? This is not supported on Mac OS X. A typical problem is of course the firstthread issue. Webstart on Mac OS X doesn't support the -XstartOnFirstThread option (this will be / is added in 1.6, haven't checked), so you need to fork another process to run Java and pass the other process the -XstartOnFirstThread option. The best option is to modify the LauncherOSX.java file to make it work. The LauncherOSX class first downloads and copies the .jar files into a temp folder and puts them in the classpath using some rather crude hacks, but it has proven to work in practice ;-). Do you have additional .jar files? If so these also need to go the same route. The second problem is the libraries you use? If you use your own native binaries, make sure that all install_name's are set up properly. The ant script should fix this if you use our deployment techniques, but its worth sanitychecking, which is done using "otool -L libraryFile". If you're using our qtjambi-macosx-gcc-4.4.0_01.jar file it should also be set up correctly. best regards, Gunnar _______________________________________________ Qt-jambi-interest mailing list [email protected] http://lists.trolltech.com/mailman/listinfo/qt-jambi-interest
