title: Configuring Maven for Windows 7, Files\Java\jdk1.6.0_23"" was unexpected at this time error
body: <p>I am trying to configure Maven on my Win 7 machine. I am following these steps:
  <a href="http://maven.apache.org/download.cgi" rel="noreferrer">http://maven.apache.org/download.cgi</a>
  I downloaded Maven into folder 
  c:\Program Files\Apache Software Foundation\apache-maven-3.0.5\</p>
  
  <p>I set all environmental variables as described in the URL above </p>
  
  <pre><code>JAVA_HOME = C:\Program Files\Java\jdk1.6.0_23
  M2_HOME = c:\Program Files\Apache Software Foundation\apache-maven-3.0.5\
  M2 = %M2_HOME%\bin
  PATH = %M2%; C:\Program Files (x86)\SSH Communications Security\SSH Secure Shell;     %JAVA_HOME%\bin ; C:\Program Files\Java\jdk1.6.0_23
  </code></pre>
  
  <p>But when I enter:
  C:\Users\Andrei>mvn --version</p>
  
  <p>I get a :</p>
  
  <p>Files\Java\jdk1.6.0_23"" was unexpected at this time.</p>
  
  <p>Can you please help me with this issue?
  Let me know please if you need more details.
  Thanks in advance!</p>