--In the environment variables,
PATH were set in the user environment variables, and
JAVA_HOME was set in the system environment variables.
--Also, the error
NB: JAVA_HOME should point to a JDK not a JRE does not occur because the path destination is JRE, but is generally displayed when the JDK cannot be recognized.
JAVA_HOME in the user environment variable.
――I usually develop Android on Mac, but I happened to touch Spring Boot on Windows, so I installed Java and Marven on Windows.
M2_HOME in the environment variable and also set Path.
--Maven cannot be executed with the following error with
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
-Already on the PC
PathWas already set, but ...
##reference:bow: Thank you for the following article in solving it