当前位置: 代码迷 >> 综合 >> The JAVA_HOME environment variable is not defined correctly This environment variable is needed to r
  详细解决方案

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

热度:53   发布时间:2023-09-30 22:07:18.0

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,一样的步骤配置,成功运行。

  相关解决方案