配置完maven环境变量后cmd输入mvn -v命令后报错:NB: JAVA_HOME should point to a JDK not a JRE

配置完maven环境变量后cmd输入mvn -v命令后报错:NB: 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 program

NB: JAVA_HOME should point to a JDK not a JRE

 

hmoban主题是根据ripro二开的主题,极致后台体验,无插件,集成会员系统
自学咖网 » 配置完maven环境变量后cmd输入mvn -v命令后报错:NB: JAVA_HOME should point to a JDK not a JRE