How to set environment variable JAVA_HOME that will be saved on exit?

view full story

http://unix.stackexchange.com – I use Suse. First was installed jdk7, so JAVA_HOME remains like: /usr/java/jdk1.7.0_05/ After I have deinstalled and installed jdk6, but cannot figure out how to change JAVA_HOME. .bashrc and .profile don't contain anything about JAVA_HOME. Does exist another file? Thanks. (HowTos)