John B. Matthews wrote:
In article <ha5o5r$vqq$1@news.eternal-september.org>,
"Mike Schilling" <mscottschilling@hotmail.com> wrote:
I'll be writing a command-line Java program whose user will want it
to be runnable as mnay places as possible, certainly including
Windows, Linux, Unix, and Mac. The program itself should run fine
on all of these; my question is about how to make it easy to run it.
For Windows I'll write a batch script that will do the job of
looking for the JRE and starting up the Java program. For Unix and
Linux this will be a shell script. What's the (rough) equivalent
for a Mac? (JavaWebStart isn't a possibility here. I'm not going
to host the program anywhere; I'm just going to hand it over.)
Mac OS X is Unix. It's not rough at all! I generally use the same
shell script on Mac OS X and Linux. Pick a shell, any shell:
$ cat /etc/shells
# List of acceptable shells for chpass(1).
# Ftpd will not allow users to connect who are not using
# one of these shells.
/bin/bash
/bin/csh
/bin/ksh
/bin/sh
/bin/tcsh
/bin/zsh
Excellent. Thanks, guys.