Created
November 27, 2017 02:38
-
-
Save quangson91/d00c45cdc53919858582ce81d56f9622 to your computer and use it in GitHub Desktop.
Update JAVA_HOME with jvm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
update_java_home() { | |
local java_version=`jenv version-name` | |
export JAVA_HOME="`/usr/libexec/java_home -v $java_version`" | |
} | |
update_java_home |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In .zshrc or .bash_profile we add this line at the end of file: