i am facing the same issue as mentioned in the following link JAVA_HOME points to the wrong place
but this is eclipse, and I am facing it in DOS command promp > ant jar
Note: i have updated enviro variables correctly(JAVA_HOME and ANT_HOME)
i am facing the same issue as mentioned in the following link JAVA_HOME points to the wrong place
but this is eclipse, and I am facing it in DOS command promp > ant jar
Note: i have updated enviro variables correctly(JAVA_HOME and ANT_HOME)
Check your registry to see if the path has been updated there. I experienced a similar problem and was able to fix it with the following: I'm Using Windows 7 x64
Start-> Run-> "regedit".
In the Registry goto:
Computer -> HKEY_LOCAL_MACHINE -> SOFTWARE -> JavaSoft -> Java Runtime Environment
Check to see if JavaHome points to the right location, you can modify it if need be. Mine for example reads:
C:\Program Files\Java\jdk1.7.0_45\jre
and the RuntimeLib reads:
C:\Program Files\Java\jdk1.7.0_45\jre\bin\jvm.dll
As for your Ant install, do the same checks, just be sure not to forget the path endings. Hope this helps.
Edit:
I was blown away by the ease of the tool provided in this answer: Submitted by Eric
If anyone is having issues running jar files I highly recommend taking a look at this.
If you are absolutely sure that you have got JAVA_HOME right under Computer -> ... Environment Variables -> System, then restart your command prompt for it to pick up the new value.