Skip to main content



      Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » How to deploy SWT with Java webstart for Mac OS x
How to deploy SWT with Java webstart for Mac OS x [message #650210] Sun, 23 January 2011 00:49 Go to next message
Eclipse UserFriend
Hi
I deployed an application written using SWT with webstart. It works fine for ubuntu, but on mac no. Here is jnlp file. What is the problem.

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<jnlp codebase="http://zehabsd.ir/ws/eclipse/critic/" href="launch.jnlp" spec="1.0">
    <information>
        <title>Critical Depth Calculator</title>
        <vendor>Zehab Saze Daehang Co.</vendor>
        <homepage href="http://zehabsd.ir"/>
        <description>Critical Depth Calculator is an application for computing critical depth in open channels.</description>
        <description kind="short">Critical Depth Calculator is an application for computing critical depth in open channels.</description>
	<icon href="icon.png"/>
	<icon href="trp.png" kind="splash"/>
	<offline-allowed/>
    </information>
<update check="background"/>
<security>
<all-permissions/>
</security>
<resources>
	<j2se version="1.5"/>
	<jar href="CriticalDepth.jar" main="true"/>
	<jar href="http://zehabsd.ir/ws/eclipse/lib/org.eclipse.core.commands.jar"/>
	<jar href="http://zehabsd.ir/ws/eclipse/lib/org.eclipse.equinox.common.jar"/>
	<jar href="http://zehabsd.ir/ws/eclipse/lib/org.eclipse.jface.jar"/>
</resources>
<resoureces os="Windows">
	<jar href="http://zehabsd.ir/ws/eclipse/lib/swt-win.jar"/>
</resources>
<resources os="Linux">
	<jar href="http://zehabsd.ir/ws/eclipse/lib/swt-gtk-linux.jar"/>
</resources>
<resources os="Mac OS X">
	<jar href="http://zehabsd.ir/ws/eclipse/lib/swt-mac.jar"/>
</resources>
    <application-desc main-class="ir.zehabsd.criticaldepth.CriticalDepthApp">
    </application-desc>
</jnlp>
Re: How to deploy SWT with Java webstart for Mac OS x [message #650423 is a reply to message #650210] Mon, 24 January 2011 14:19 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

You need to use the Java VM option -XstartOnFirstThread for SWT applications to run properly on Mac.
Try with ---
<j2se version="1.5" java-vm-args="-XstartOnFirstThread"/> in the jnlp file
Re: How to deploy SWT with Java webstart for Mac OS x [message #650470 is a reply to message #650423] Tue, 25 January 2011 02:21 Go to previous message
Eclipse UserFriend
Thanks a lot.
Previous Topic:Accelerator key for a widget placed before a label?
Next Topic:OleClientSite Trouble with Excel
Goto Forum:
  


Current Time: Wed Jul 02 00:08:15 EDT 2025

Powered by FUDForum. Page generated in 0.06358 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top