Why is are my variables disappearing AND How to install JSP
I am trying to install JSP with my Apache server. I have the Apache server up and serving html pages. I want to be able to support some of the JSP pages I have writen.
To install JSP I have installed the Java JDK1.3.1_03 in the /usr/java/jdk1.3.1_03 directory. Then, I attemp to create a system variable, JAVA_HOME to contain the directory. Here is my command:
JAVA_HOME=/usr/java/jdk1.3.1_03 ; export JAVA_HOME
It seems to work, because when I type:
I get the directory path I entered.
Then, I add the directory path to the classpath(?) like so:
PATH=$JAVA_HOME/bin:$PATH ; export PATH
When I echo $PATH I get what the correct new path and the javac command works. So the jdk is set up now, yea. By the way, I do all of this from the terminal as superuser in Xwindows on Mandrake 8.1 (vitamin), I believe it is a BASH shell.
I then, do the same thing for TOMCAT_HOME, and ANT_HOME. The problem arrises when I shutdown the computer for any reason. When I restart the computer the PATH is back to default, no more JAVA_HOME or anything. How do I get the PATH to stay set after I have restarted the computer. By the way, I use this command to shutdown the computer:
shutdown -h now
I have read that this is the way to do it without messing stuff up. please let me know if I am wrong.
Thanks in advance. Plus, I you know where I can find detailed instructions on how to install JSP, I would appreciate it.