Created
July 30, 2019 13:22
-
-
Save benman1/100043c5754bf45072513a6db2b251e1 to your computer and use it in GitHub Desktop.
automatically determine JAVA_HOME
This file contains hidden or 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
java_exec=$(readlink -f `which javac`) | |
export JAVA_HOME="${java_exec::-10}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment