I added the following to my .bash_profile:
However, when I echo $JAVA_HOME it outputs an empty string. Why weren't my changes to .bash_profile reflected in the shell?
You should add this to your .bashrc file, if you want it set for every interactive shell.
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
3 years ago