Can someone help me with what is probably a ridiculously simple Fedora Linux
environment init problem. I admit that I am a Linux novice - I have always used Windows, but now need to quickly do some things with
Java under Linux.
I have created a shell script and it works properly when I execute it from a Fedora Linux terminal window. I know that this is the case because I placed echo statements in the script and the echoed statements show that the enviroment variables (path, etc) have changed. However, once the script ends and I type echo $PATH in the terminal session window, the environment is the same as before I executed the script. The script is as follows:
#1/bin/sh
CLASSPATH=""
echo $CLASSPATH
export JAVA_HOME=/usr/java/jdk1.5.0_07
echo $JAVA_HOME
PATH=$JAVA_HOME/bin:$PATH
echo $PATH