Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1082795
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T22:21:01+00:00 2026-05-16T22:21:01+00:00

I have a Java application, built with eclipse, that uses QTJambi. Running the application

  • 0

I have a Java application, built with eclipse, that uses QTJambi. Running the application from the command line works perfectly.

java -d32 -XstartOnFirstThread -jar MyApplication.jar someArg

However, trying to deploy the application with WebStart is proving difficult. I’ve done a whole lot of reading and it seems many people have issues getting this to work on Mac OS X. The issue seems to be that the native libraries aren’t being correctly loaded. The stack trace is provided below.


CWindow's _nativeHide encountered error: java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.sun.javaws.Launcher.invokeMainMethod(Launcher.java:1819)
Caused by: java.lang.ExceptionInInitializerError
    at com.trolltech.qt.QtJambiObject.(QtJambiObject.java:60)
    at com.engage.agentdesktop.Application.main(Application.java:25)
    ... 5 more
Caused by: java.lang.RuntimeException: Loading library failed, progress so far:
No 'qtjambi-deployment.xml' found in classpath, loading libraries via 'java.library.path'
Loading library: 'libQtCore.4.dylib'...
 - using 'java.library.path'

    at com.trolltech.qt.internal.NativeLibraryManager.loadNativeLibrary(NativeLibraryManager.java:431)
    at com.trolltech.qt.internal.NativeLibraryManager.loadQtLibrary(NativeLibraryManager.java:355)
    at com.trolltech.qt.Utilities.loadQtLibrary(Utilities.java:140)
    at com.trolltech.qt.Utilities.loadQtLibrary(Utilities.java:136)
    at com.trolltech.qt.QtJambi_LibraryInitializer.(QtJambi_LibraryInitializer.java:56)
    ... 7 more
Caused by: java.lang.RuntimeException: Library 'libQtCore.4.dylib' was not found in 'java.library.path'=/Users/smeatonj/Desktop/Engage Agent Desktop.app/Contents/Resources/Java:/System/Library/PrivateFrameworks/JavaApplicationLauncher.framework/Resources:.:/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java
    at com.trolltech.qt.internal.NativeLibraryManager.loadLibrary_helper(NativeLibraryManager.java:486)
    at com.trolltech.qt.internal.NativeLibraryManager.loadNativeLibrary(NativeLibraryManager.java:426)
    ... 11 more

This is an extract of the webstart.jnlp file:

   `[resources`]
        `[j2se version="1.5+"/`]
    `[jar href="${MEDIA_URL}application/webstart/MyApplication.jar" /`]
        ....
        `[jar href="${MEDIA_URL}application/webstart/MyApplication_lib/qtjambi-4.5.2_01.jar" /`]

  `[resources os="Mac OS X"`]
    `[j2se version="1.5+" java-vm-args="-d32 -XstartOnFirstThread"/`]
    `[jar href="${MEDIA_URL}application/webstart/MyApplication_lib/qtjambi-macosx-gcc-4.5.2_01.jar" /`]
  `[/resources`]

The error tells me that qtjambi-deployment.xml is not found in the classpath. I’ve opened up qtjambi-macosx-gcc-4.5.2_01.jar and there is definitely the qtjambi-deployment.xml file there.

The resources os=”Max OS X” node is definitely being loaded by the JNLP, because I was receiving different errors before that required me to put -d32 into the vm args. Does anyone know what the hell could be causing this error?

Edit:

The application runs fine when webstarting to Windows.

  • 1 1 Answer
  • 1 View
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T22:21:02+00:00Added an answer on May 16, 2026 at 10:21 pm

    For those that come after, this is the information that we discovered about deploying Jambi via webstart to Mac OS X.

    qtjambi-macosx-gcc-4.5.2_01 can not be found when installing/launching from webstart. If this library is on your path, webstart is able to find it and use it, and will launch correctly. Further, there are some JNLP properties that need to be set.

      <resources os="Mac OS X">
        <!-- Currently Unsupported-->
        <property name="com.trolltech.launcher.webstart" value="true" />
        <property name="com.trolltech.verbose-loading" value="true" />
        <j2se version="1.5+" java-vm-args="-d32 -XstartOnFirstThread"/>
        <jar href="/path/to/qtjambi-macosx-gcc-4.5.2_01.jar" />
      </resources>
    

    The property com.trolltech.launcher.webstart is required to inform the Jambi libraries that we are starting via webstart, and to configure itself in such a way that allows webstart to work. Unfortunately, it’s broken for mac os x at this point in time.

    The QTJambi Community Port to 4.6 solves the above problem, but introduces a new problem.

    http://qt.gitorious.org/qt-jambi/community-port-to-4_6
    http://sourceforge.net/apps/trac/qtjambi/ticket/37

    I’ve investigated this bug as well, and it requires changing one line of code to get working, namely, changing the class loader to play nice with webstart (more secure class loader). I haven’t attempted yet, due to the build system being quite off putting and not having the time to investigate properly.

    So, if you’re having troubles deploying QT Jambi applications with webstart on Mac OSX, you now know why. If anyone gets around to changing 4.6, please post here and update this information. Alternatively, if I get around to changing it, I’ll post here also.

    Useful references:

    http://doc.qt.nokia.com/qtjambi-4.3.5_01/com/trolltech/qt/qtjambi-systemproperties.html

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a running Java GWT application, that I can compile using Eclipse. Now
I have built a Java application that has some dependencies (~10). I would like
I have built a web application using Java EE platform that sells one of
I have a Flex/Java web application that uses Maven as a build tool. Currently,
We recently started using Eclipse to develop our java application and have been running
I have a Maven-built web application that uses Hibernate. It runs successfully in Tomcat,
I have a web application, built with Maven, consisting of a Java (Spring) backend
I have a Java application that run as a background service, i.e. no GUI.
I have an application that is composed of about 10 different Eclipse projects. Some
I have built a Java/Swing Application and I have successfully deployed it using Ant,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.