I need to permanently change JAVA_HOME and JRE_HOME environment variables in Linux.
So far I've been doing export:
export JAVA_HOME=jdk-install-dir
export PATH=$JAVA_HOME/bin:$PATH
But after I close the terminal the changes go away. How do I make the change permanent?
If it helps I'm running Red Hat with Korn shell.
Thanks!