[Solved] Error installing MVN: Java_Home is set to an invalid directory

Error: JAVA_HOME is set to an invalid directory


Solution:
Change JAVA_HOME = "D:/Java/jdk1.6.0_12/bin" to JAVA_HOME = “D:/Java/jdk1.6.0_12”
Change %JAVA_HOME% in the path environment variable to %JAVA_HOME%/bin
Then restart cmd

Read More: