在jdk-10环境下maven-3.5.3配置出错如下
在jdk-10环境下maven-3.5.3配置出错如下
C:\Users\Administrator\Desktop>mvn -v
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
JDK版本;
C:\Users\Administrator\Desktop>java -version
java version "10" 2018-03-20
Java(TM) SE Runtime Environment 18.3 (build 10+46)
Java HotSpot(TM) 64-Bit Server VM 18.3 (build 10+46, mixed mode)
这个怎么解决