Following is the best way to get of the issue , check following on classpath:
-
Make sure JAVA_HOME system variable must have till jdk e.g
C:\Program Files\Java\jdk1.7.0_80, don’t append bin here. -
Because MAVEN will look for jre which is under
C:\Program Files\Java\jdk1.7.0_80 -
Set
%JAVA_HOME%\binin classpath .
Then try Maven version .
Hope it will help .