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).
Similar Posts:
- [Solved] NB: JAVA_HOME should point to a JDK not a JRE
- The CATALINA_HOME environment variable is not defined correctly
- Solution to the problem of not able to find Java executable or version in JMeter installation
- [618]basic_consume() got multiple values for keyword argument ‘queue’
- Multiple JDK switch and solution of could not find java.dll exception in win10 environment
- ideaUnable to ping server at localhost:1099
- Failed to install node with. MSI, rolling back action (Reprint)
- About javac error bash: Java: command not found solution
- eclipse scala failed to load the jni shared library
- [268] bash: jar: command not found