--In the environment variables, M2_HOME and 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.
--Set 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.
--I set M2_HOME in the environment variable and also set Path.
--Maven cannot be executed with the following error with 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
-Already on the PCJAVA_HOMEIs set,PathWas already set, but ...
##reference:bow: Thank you for the following article in solving it