Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Maven still doesn't run after setting environment variables

Tags:

maven

here is what I have set in User Variables to run maven..

JAVA_HOME

C:\Program Files\Java\jdk1.7.0_05

M2

%M2_HOME%\bin

M2_HOME

C:\Program Files\apache-maven-3.0.4

MAVEN_OPTS

-Xms256m -Xmx512m

PATH

%PATH%;%JAVA_HOME%\bin;%M2_HOME%\bin;

but still a mvn --version command gives my error. I followed the steps in their own website and still getting the error. Do you see anything wrong with what I posted above?

like image 838
Bohn Avatar asked Feb 20 '23 18:02

Bohn


1 Answers

Have you restarted your command line window after PATH set up?

like image 162
Andriy Plokhotnyuk Avatar answered Mar 17 '23 01:03

Andriy Plokhotnyuk