While testing changes to the Maven Installer I had this strange error. Simple enough – I had quoted the value for the JAVA_HOME variable. So I had: JAVA_HOME=”C:\Program Files\Java\jdk1.7.0_07″ Removed the quotes and all worked fine: JAVA_HOME=C:\Program Files\Java\jdk1.7.0_07 Hope this helps.