I have Windows Vista and am trying to install maven and test it. But I realized that I have a problem with JAVA, and I need to solve it first.
I do Start-> Run-> cmd
and type in command line
C:\>mvn clean
I get the following error
ERROR: JAVA_HOME was not found in your environment. Set the JAVA_HOME variable in your environment to match the location of your Java installation
So, I say: let it sets the PATH for Java, and I did:
Start-> Control Panel-> System-> Advanced System Settings-> Environment Variable-> System Variables
Change PATH Variable
C:\Program Files\Java\jdk1.6.0_32;C:\apache-maven-3.0.4\bin;
But then I get the same error when I do:
C:\>mvn clean
Then I typed cmd command:
C:\>java -version java version "1.7.0_07" Java(TM) SE Runtime Environment (build 1.7.0_07-b11)
and I understand that the version of Java that is working is not under the directory "C: \ Program Files \ Java"
The only JDKs I have are: jdk1.6.0_29 jdk1.6.0_32
Then I did Run-> cmd
C:\>where java C:\Windows\System32\java.exe
(I recently downloaded the Eclipse IDE and IntelliJ IDE, and I don't know if these applications come with the JDK).
Where can I find my JDK installation on Windows and set the path in environment variables?
source share