java – Error: JAVA_HOME is set to an invalid directory
java – Error: JAVA_HOME is set to an invalid directory
JAVA_HOME = C:Program FilesJavajdk1.7.0_51;
Maven says that there is a semi-colon after the directory name in the JAVA_HOME
environment variable. Remove the semi-colon.
you shoud have both maven and java home defined in the same System Variable …
java – Error: JAVA_HOME is set to an invalid directory
Try Rename M2_HOME at MAVEN_HOME
Also change M2: %MAVEN_HOME%bin