Error in setting JAVA_HOME
问题 I have recently downloaded Maven and followed the instructions given on this this page. I already have ant installed on my machine. Now, if I want to verify that Maven is installed perfectly or not it is giving me error that JAVA_HOME is not set correctly, but same works perfectly fine for ANT. For Maven I tried : 1. open cmd 2. type mvn -version 3. Error appeared : C:\Users\Admin>mvn -version ERROR: JAVA_HOME is set to an invalid directory. JAVA_HOME = "C:\Program Files\Java\jre7\bin" Please