The JAVA_HOME environment variable is not defined correctly This environment variable is needed to r

maven安装问题提示:

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

检查好几遍,路径、变量名都没有问题,最后只能是Java版本和maven版本不兼容了。官网重新下载新版本的Java、maven,一样的步骤配置,成功运行。

猜你喜欢

转载自blog.csdn.net/qq_34568522/article/details/79690295