Tag Archives: [791]maven

[791] Maven configuration error and the Java_ The solution of home environment variable is not defined correctly

Error message:

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 understanding of error message is as follows:

the reason is Java_ Home should be set to D:: jdk8_ 64 \, path, changed to% Java_ HOME%\bin。

conclusion: after configuring the environment variable, home is home, because it contains the JRE directory, if you configure bin; Then JRE can’t find

I got this error message because of the user variable Java of adminstrator_ The home path is written before the project configuration is 1.8.0 version

Java and system variable_ The path of home is out of place, so this error occurs. You should also pay attention to the user variable of adminstrator when configuring

Java and system variable_ Home must be the same

After configuration, click OK to close the previously opened CMD window and reopen a CMD window. At this time, the test MVN - version is successful

Reference: https://blog.csdn.net/cms18374672699/article/details/83212263

This article is shared in the blog “Zhou Xiaodong” (CSDN).