environment variable
Jerry Feldman
gaf at blu.org
Sun Apr 18 13:16:06 EDT 2004
On Sun, 18 Apr 2004 12:52:46 -0400
"D.E. Chadbourne" <235u at comcast.net> wrote:
> Chris Devers wrote:
> ...
> > Have you tried reading the error, and setting $JAVA_HOME ? :-)
> >
> > $ echo $JAVA_HOME
> > $
> >
> > $ export JAVA_HOME="/Library/Java/Home"
> > $
> >
> > $ echo $JAVA_HOME
> > /Library/Java/Home
> > $
> >
> > Make sense?
>
> this looks very cool but unfortunately i have no idea how to use echo
> in the way you suggest. yes i'm lost.
>
> >
> > And why are you messing around in a root shell? Don't have sudo?
> >
>
> point taken. i go root crazy sometimes when having to change stuff on
>
> my pc.
The echoes, just test if JAVA_HOME is set. The first one shows it is
not, the second shows it is.
In a bash script:
if [ "$JAVA_HOME" = "" ] then
export JAVA_HOME="/Library/Java/Home"
fi
--
Jerry Feldman <gaf at blu.org>
Boston Linux and Unix user group
http://www.blu.org PGP key id:C5061EA9
PGP Key fingerprint:053C 73EC 3AC1 5C44 3E14 9245 FB00 3ED5 C506 1EA9
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.blu.org/pipermail/discuss/attachments/20040418/e6b7a253/attachment.sig>
More information about the Discuss
mailing list