-1

I try to install maven in windows 7 64 bit. This is the path to the bin folder.

C:\apache-maven-3.0.4\apache-maven\src\bin

I am doing this:

  1. Create System variable MAVEN_HOME with value :C:\apache-maven-3.0.4\apache-maven\src
  2. Append to Path variable %MAVEN_HOME%/bin

This is the last part of the path

C:\Program Files (x86)\Microsoft SQL Server\100\DTS\Binn\;%MAVEN_HOME%\bin 

Edit: After doing this several times, when i get to cmd mvn -version i get this error message: JAVA_HOME not found in your environment, this is the first time i get it, till now i got only invalid command, batch file not found

This is the path for java:

C:\Program Files\Java\jdk1.7.0\bin
  1. I created JAVA_HOME with the value C:\Program Files\Java\jdk1.7.0
  2. Append to the path variables: %JAVA_HOME%\bin

This is the last part of my path:

C:\Program Files (x86)\Microsoft SQL Server\100\DTS\Binn\;%MAVEN_HOME%\bin;%JAVA_HOME%\bin

I am still getting JAVA_HOME not found in your environment.

Jack Willson
  • 2,004
  • 5
  • 19
  • 23

2 Answers2

0

You need to set your JAVA_HOME to the home directory of your java installation folder (Assuming you already have JDK installed) .It should be something like C:\Program Files\Java\jdk1.6.0_24

Rohit
  • 583
  • 6
  • 9
0

Try to download apache-maven-..-bin.zip instead of the apache-maven-..-src.zip from the maven download page. The bin folder should be directly under c:\apache-maven-3.0.4 directory. Set the PATH variable accordingly. Of course, add JAVA_HOME environment variable too.

Lan
  • 6,118
  • 3
  • 22
  • 35