Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Problem deploying SWT app with WebStart on Mac
Problem deploying SWT app with WebStart on Mac [message #449617] Thu, 27 January 2005 14:25 Go to next message
Dane Summers is currently offline Dane SummersFriend
Messages: 1
Registered: July 2009
Junior Member
I've written an app with SWT and deployed it with WebStart. In my
attempts to get the thing to work on the Mac (I don't have a mac, I'm
doing this with one of my beta tester customers), I cannot get the
application to act correctly.

It launches, but the frame is entirely blank - nothing is painted within
the contents.

I've done a little snooping and learned that SWT and webstart do not
appear to work at all on Mac OS X, because you cannot specify that the
webstart launcher user the 'java_swt' hacked launcher instead of 'java'.

Does anybody know of any workarounds for this?

Thanks,

Dane Summers
Re: Problem deploying SWT app with WebStart on Mac [message #449793 is a reply to message #449617] Sat, 29 January 2005 05:49 Go to previous message
Brion Vibber is currently offline Brion VibberFriend
Messages: 21
Registered: July 2009
Junior Member
Dane Summers wrote:
> I've done a little snooping and learned that SWT and webstart do not
> appear to work at all on Mac OS X, because you cannot specify that the
> webstart launcher user the 'java_swt' hacked launcher instead of 'java'.
>
> Does anybody know of any workarounds for this?

The ugly hack I ended up doing was to make a jar which contained a .zip
of the self-contained application bundle and a small .class to unzip and
run it. Oooogly, but it does run functionally when a Mac user clicks the
web start icon. You do end up with double dock icons and generally
startup feels non-native.

If you don't need WebStart specifically, in general I'd recommend
packaging a Mac version as an application bundle in a .dmg disk image,
the same way most downloadable Mac software is packaged. Unfortunately
you can only build a .dmg on Mac OS X, but a .zip file will often be
good enough if you need to do automated builds from another OS.

When making your .zip (or extracting one from Java code) be sure to set
the executable bit on java_swt (this can be done in Ant by fiddling with
the zipfile task).

-- brion vibber (brion @ pobox.com)
Previous Topic:Blank Columns in TableTreeViewer Root Nodes
Next Topic:Minimize Border space in a Tree view
Goto Forum:
  


Current Time: Tue Nov 19 02:57:37 GMT 2019

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

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

Back to the top