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
本文标题:macOS关于JAVA_HOME报错问题解决
本文链接:https://www.haomeiwen.com/subject/jjdadktx.html
网友评论