From: Andreas Kostyrka (andreas_at_mtg.co.at)
Date: Sat 21 Dec 2002 - 20:56:21 GMT
Am Sam, 2002-12-21 um 19.59 schrieb Ken Stanley:
>
> We have created several simple shell scripts to set java environment
> variables and they don't seem to work.
> We are running VPS .20-1 on Redhat 7.3 with Redhat 7.3 virtuals.
>
> Here is an example:
>
> #! /bin/sh
> export JAVA_HOME=/usr/java/jdk1.3.1/
> export PATH=$JAVA_HOME/bin:$PATH;
> export CLASSPATH=$CLASSPATH:.
>
> The script runs, it's set as executable, but the environment variables
> do not work.
How do you execute the script?
./script is wrong
. script is right.
Andreas