ERROR: JAVA\_HOME is set to an invalid directory: /Library/Java/JavaVirtualMachines/1.8.0\_121.jdk/Contents/Home
解決辦法
export JAVA\_HOME=`/usr/libexec/java\_home
echo export “JAVA\_HOME=$(/usr/libexec/java\_home)” >> ~/.bash\_profile
ERROR: JAVA\_HOME is set to an invalid directory: /Library/Java/JavaVirtualMachines/1.8.0\_121.jdk/Contents/Home
解決辦法
export JAVA\_HOME=`/usr/libexec/java\_home
echo export “JAVA\_HOME=$(/usr/libexec/java\_home)” >> ~/.bash\_profile