I changed JAVA_HOME to terminal, but the terminal on another tab returns to the original setting.
What should I do if I want to permanently reflect the environment variables that I set in Terminal?
Writing directly into .bash_profile is troublesome, so I would like to do it with terminal.
export JAVA_HOME=`/usr/libexec/java_home-v1.7`
Why don't you redirect it normally?
echo'export JAVA_HOME=`/usr/libexec/java_home-v1.7`'>~/.bash_profile
© 2024 OneMinuteCode. All rights reserved.