?
Solved

Problem while setting Maven Path in vista

Posted on 2010-01-12
3
Medium Priority
?
269 Views
Last Modified: 2013-11-23
Hi.
Could someone please help me solving the issue of setting enviroment variable in vista? I have my maven intalled C:\Maven\apachemaven\bin, when I run maven --version or mvn --version i get the message 'maven' is not recognized as an internal or external command,
operable program or batch file.

echo %PATH% C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;%M2%;%JAVA_HOME\bin%
echo %M2%  C:\Maven\apachemaven\bin
echo %M2_HOME% C:\Maven\apachemaven

C:\>maven -version
'maven' is not recognized as an internal or external command,
operable program or batch file.
0
Comment
Question by:AjooAli
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 86

Accepted Solution

by:
CEHJ earned 2000 total points
ID: 26296556
Your variables are set wrong:

>>
echo %PATH% C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;%M2%;%JAVA_HOME\bin%
>>

The fact that %M"% is printed in the above means that it hasn't been expanded - you've probably entered it wrong when you set PATH

Also

%JAVA_HOME\bin%

should be

%JAVA_HOME%\bin
0
 
LVL 86

Assisted Solution

by:CEHJ
CEHJ earned 2000 total points
ID: 26296565
>>The fact that %M"% is printed in the above means

sorry - that should have said

The fact that %M2% is printed in the above means
0
 

Author Comment

by:AjooAli
ID: 26296650
Thanks C:\Maven\apachemaven\bin worked
0

Featured Post

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
Suggested Courses
Course of the Month13 days, 3 hours left to enroll

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question