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:
Another way is to just do
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 =.