I have added this line at the end of ~/.bashrc
But when I execute
echo $JAVA_HOME, I don't get anything as output, I expected "/usr/java/jdk1.5.0_07/bin/java".
OS: Ubuntu 11.10
Or you have to instantiate a
and of course you could just re-login.
Typically though Java paths are not set using .bashrc they are set as separate scripts in the
To enable the change which you have performed on ~/.bashrc file, you need to execute the command mentioned in the ~/.bashrc file . For this you have to close the terminal and open it again.