About this question
Operating System Windows 10 java version "1.8.0_161" - jre
C:Usersadmin>echo %JAVA_HOME%
C:Program FilesJavajdk1.8.0_91;
Error (Command line)
C:Usersadmin>mvn -version
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