I am using a centos virtual machine instance. I have edited the /root/.bash_profile and set the JAVA_HOME path.
the changes are saved but when I type echo $JAVA_HOME, the command executes but show nothing.
typing which java shows some other folder, which doesnt exist.
please help me out