The JAVA_HOME environment variable is not defined correctly
This environment variable is needed to run this program
NB: JAVA_HOME should point to a JDK not a JRE
在mac配置maven的時候報這個錯誤,原因是配置JAVA_HOME的時候手寫了,後面複製路徑後變得正常,希望可以幫到有同樣問題的同學。
The JAVA_HOME environment variable is not defined correctly
This environment variable is needed to run this program
NB: JAVA_HOME should point to a JDK not a JRE
在mac配置maven的時候報這個錯誤,原因是配置JAVA_HOME的時候手寫了,後面複製路徑後變得正常,希望可以幫到有同樣問題的同學。