I followed the Maven tutorial to the letter but I still can't get Maven installed on Windows.
When I run the following in command prompt:
E:Documents and Settingszach>mvn --version
I get:
'mvn' is not recognized as an internal or external command, operable program or batch file.
I navigated to the maven install folder and ran mvn --version
and got:
E:java resourcesapache-maven-2.2.0in>mvn --version
ERROR: JAVA_HOME is set to an invalid directory.
JAVA_HOME = "E:SunSDKjdkin"
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation
but when I run java -version
I get:
java version "1.6.0_14"
Java(TM) SE Runtime Environment (build 1.6.0_14-b08)
Java HotSpot(TM) Client VM (build 14.0-b16, mixed mode)
So I do have Java installed. Anyone know what the problem is?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…