配置MVN报错解决::the java_home environment variable is not defined correctly This environment variable

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
1.删除掉原先配置的JAVA_HOME,重新配置一下即可;
2.然后运行mvn -v即可成功。

————————————————
版权声明:本文为CSDN博主「hd520superman」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/hd520superman/article/details/88046359

posted @ 2020-04-29 15:14  #夜藤  Views(9114)  Comments(0)    收藏  举报