Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 05:49 Go to next message
Hamed Mohammadi is currently offline Hamed Mohammadi
Messages: 37
Registered: May 2010
Location: Shiraz - Iran
Member

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 19:19 Go to previous messageGo to next message
Lakshmi Shanmugam
Messages: 274
Registered: July 2009
Location: India
Senior Member
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


Lakshmi P Shanmugam
Re: How to deploy SWT with Java webstart for Mac OS x [message #650470 is a reply to message #650423] Tue, 25 January 2011 07:21 Go to previous message
Hamed Mohammadi is currently offline Hamed Mohammadi
Messages: 37
Registered: May 2010
Location: Shiraz - Iran
Member

Thanks a lot.
Previous Topic:Accelerator key for a widget placed before a label?
Next Topic:How to hide Excel toolbars using SWT
Goto Forum:
  


Current Time: Tue Sep 16 13:33:01 GMT 2014

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

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