Java version not the one I have installed
I have installed Java 1.6.0
Code:
/usr/local/jdk1.6.0_24/ Code:
java -version I know that I need to change my bash_profile but when I try it does not solve the problem Code:
# .bash_profile |
You added your new java path to the end of your path statement, but the previous JDK was already in your path, and is therefore coming up first in your search order.
First, verify your change to .bash_profile has successfully updated your path (I usually make these changes to .bashrc): Code:
echo $PATH Code:
# .bash_profile |
A previous java will usually be a link /usr/bin/java to /etc/alternatives/java.
I don't think, the bashrc will override that. Default install location : /usr/java/jdk1.6.0_24 And the default way of setting up java : 1) su 2) /usr/sbin/alternatives --install /usr/bin/java java /usr/java/jdk1.6.0_24/bin/java 2 3) /usr/sbin/alternatives --config java .... Then select version : sun. .... |
That fixed it - I mean changing the profile fixed
Code:
# .bash_profile |
All times are GMT -5. The time now is 12:31 PM. |