OS: Windows 7

Problem:

Whenever I tried to install maven or grails, using the following environment variables:

M2_HOME = C:\Users\user\firstword secondword\maven-installation

Path=%GRAILS_HOME%\bin
for some odd reason, the command prompt couldn’t find the executable.

Associated error messages:

“mvn is not recognized as an internal or external command, operable program, or batch file.

Solution:

Remove the spaces in the path.

I renamed the folder where my grails download was found.
It worked.

Problem solved.

Advertisements