I am using Mac, and $JAVA_HOME
environment path is set in ~/.bash_profile
like:
export JAVA_HOME=$(/usr/libexec/java_home)
After I updated Java, bash
kept trying to find Java from the older version.
I had to run source ~/.bash_profile
to tell bash the new Java path every time I open a new terminal. Is there any configuration overrides my setting in .bash_profile
?