$JAVA_HOME path not sourced correctly in ~/bash_profile at login
问题 Upon logging into my CentOS 7 VM, my $JAVA_HOME is always set to : /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.131-11.b12.el7.x86_64/jre , which is incorrect. My ~/.bash_profile reads: # .bash_profile # Get the aliases and functions if [ -f ~/.bashrc ]; then . ~/.bashrc fi # User specific environment and startup programs JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.144-0.b01.el7_4.x86_64/jre export JAVA_HOME PYCHARM_HOME=/opt/pycharm-community-2017.2.3/ export PYCHARM_HOME ECLIPSE_HOME=/opt