I have tried setting up my JAVA_HOME
with the path I have got from using the command where Java. But still when I am trying to launch mvn.bat
it's not working. I have tried setting up JAVA_HOME
with all the below paths:
C:\Program Files\Java\jdk1.8.0_25
C:\Program Files\Java\jdk1.8.0_25\bin
C:\ProgramData\Oracle\Java\javapath\java.exe
But none seems to work when using mvn.bat
. Anyone any help please? I am using Windows 7 x86.
Thanks every one. After I have set up the Path and M2 variable in my system variables it's now working. Previously I although I had JAVA_HOME and M2_HOME set up on my system, I did not have Path pointing to same location as does JAVA_HOME. Neither I had M2_PATH enabled. Now all fine. Thanks everyone