I'm trying to write a double clickable java application (Mac OS version
only required) that will send a command to the shell to start a bundled
java application using a command line option (in this case it's over a
network to run in "client" rather than the default "admin" mode). My
attempts using Runtime.exec(cmdArray) have failed. It's easy to set up
strings in cmdArray that will open my application using the full
pathname (ie "open", "<filepath>" in cmdArray) as long as I point the
filepath to the JavaApplicationStub, but open does not appear to
support command line options (ie "-client").
I can't work out how to call the shell within the String[] of cmdArray.
Perhaps this is trivial but I'm not particularly good at unix. Also, I
don't want (if possible) to open Terminal and a visible command shell
which is unsightly and the user would have to quit it each time. (I can
do the latter simply with a runmacclient.command script made
executable).
Has any one got any suggestions?
A/Prof David Darby
Em email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden