In Windows 7 I have added two user environment variables:
M2_HOME %PROGRAMFILES%\Apache\apache-maven-3.0.2 M2 %M2_HOME%\bin
In my head, both of those should work, however, only the first one does for some reason. What I mean is that I in a command prompt can type
Which works fine, but
Which does not. What's going on here?