What your missing is to export the variables. If you're using bash (which it seems like, since you use equality signs) then you have to put
export in front of every variable that you want to become an environment variable. Like this:
Code:
export JHHOME=/usr/java/OnlineHelp
export JAVAHELP_HOME=/usr/java/OnlineHelp
Another way is to just do
Code:
JHHOME=/usr/java/OnlineHelp
JAVAHELP_HOME=/usr/java/OnlineHelp
export JHHOME JAVAHELP_HOME
I've also removed the spaces around the equality signs; I think there mustn't be any.
In tcsh, you use
setenv instead of
export, as well as no =.