views:

176

answers:

2

Hi I'm trying to install MAVEN, to my computer using this tutorial, I've set my enviroment variable MAVEN_HOME to point to my maven directory, and I put value of path_to_maven/bin inside another enviroment variable named Path and I get this error message:

C:\>mvn -version
'mvn' is not recognized as an in
operable program or batch file.

I've tried also to use PATH instead of Path but that doesn't solve it, what else can I do? I'm using windows 7..

+2  A: 

Go to path_to_maven/bin and type mvn -version. If that works then it's a PATH problem.
In MS-DOS's prompt type set PATH=path_to_maven/bin;%PATH%

rodrigoap
Great answer that exactly solved it .. thank oyu
Gandalf StormCrow
A: 

You may need to restart your computer for the changes to PATH to take effect.

Cuga
nop no restart needed
Gandalf StormCrow