Possible Duplicate:How do I set a user environment variable? (permanently, not session) 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.
How to set environment variable JAVA_HOME that will be saved on exit?
bash;environment variables;path;java;profile
Set environment variables in ~/.profile, e.g. by adding these lines:JAVA_HOME=/usr/java/jdk1.7.0_05export JAVA_HOME