|
Re: swt 3.0 full support for mac osx? [message #438677 is a reply to message #438642] |
Tue, 29 June 2004 19:13 |
William Harris Messages: 6 Registered: July 2009 |
Junior Member |
|
|
In article <cbqe8o$mo5$1@eclipse.org>, Heitzso
<heitzso@growthmodels.com> wrote:
> Is Mac OSX 10.3 fully supported
> by SWT 3.0? If so could someone
> reply with a sample startup command
> that picks up the correct JVM
> and is run from a CDROM drive
> mounted CD? (i.e. the jars and
> native library and OSX.command file
> are all on the CD and the app runs
> from the CD and the CD is a standard
> CD filesystem (readable by Linux, Win,
> etc.)
Hi Heitzso,
SWT 3.0 runs fine on my 10.3.
Assuming I have burned an ISO CD (with Joliet extensions) called
"VarEditor", here's my var.command file (watch out for the line
breaks...):
--begin--
#!/bin/sh
cd /Volumes/VarEditor/kdos/p3
../java_swt -ea -classpath
P3.jar:../lib/osgi.jar:../lib/log4j-1.2.8.jar:../lib/swt-mac .jar:../lib/
swt-pi.jar:../lib/runtime.jar:../lib/jface.jar
-Djava.library.path=../lib -Dlog4j.configuration=file:log4j.properties
com.perspectix.kaba.sbpb.var.Main
--end--
For an SWT appliction on the Mac, you'll need the special java_swt
wrapper application which is in Eclipse.app/Contents/MacOS. Otherwise
your app will not run properly with the Aqua window manager. java_swt
will find the first java vm in the user's path. One hopes it's 1.4.
Otherwise, you might have to add an extra PATH command to the shell
script to be sure.
Of course, if you wanted to be nice to your Mac users, you'd wrap
everything in an application package (just like the Eclipse.app itself)
so they wouldn't even have to see the terminal window.
N.B. the cdrom is a read-only file system if you're planning on writing
log files or whatever...
Hope that helps,
Will
|
|
|
Powered by
FUDForum. Page generated in 0.03089 seconds