if you're using SSH shell to linux, you should see a .bash_profile file in your home directory.
set the environment variables there and it will load each time you log in
for example, my bash file:
# User specific environment and startup programs
JAVA_HOME=/home/efurrer/jdk1.5.0_11 export JAVA_HOME