C:\\Windows\\System32>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 This simply means that JDK is not installed and the JAVA_HOME variable is not properly configured.