Hello,
I am having a problem in Red Hat Enterprise Linux, I'm a newb to Linux so this is probably something very simple. I installed a new 64-bit JDK (1.6.0_18) on RHEL 5 (64-bit), and now i need to set the path so that linux will go for the 1.6.0_18 instead of the old JRE 1.4.2. But everytime i set the path variable, its like the changes are immediately undone.
Here are the steps I took:
- Log in as root
- Open Terminal, run the command: "export PATH=$PATH:/usr/java/jdk1.6.0_18/bin"
- Run "echo $PATH", the new path returns
- Run "java -version", the old jre shows up.
- Start up a new terminal, run "echo $PATH", the new path i added no longer shows up.
Thanks in advance!