Windows配置maven 出现The JAVA_HOME  environment variable is not defined correctly This environment variable is needed to run this propram JAVA_HOME should point to a JDK not a JRE

The JAVA_HOME  environment variable is not defined correctly
This environment variable is needed to run this propram
JAVA_HOME should point to a JDK not a JRE

 

检查环境变量,JAVA_HOME 多了一个bin,把bin去掉即可,path中依然保留bin

 

 

 

posted @ 2021-06-25 15:13  略略略——  阅读(576)  评论(0编辑  收藏  举报