Campbell Ritchie wrote:That PATH is incorrect; you should not usually include . in the PATH. Make sure to put the Java™ part of the PATH first.
Prince Sewani wrote: . . .
b) name : PATH
value : .;%JAVA_HOME%\bin . . .
Campbell Ritchie wrote:Can you uninstall Java7 and do a system restore to before you installed it?
sasanka mandavilli wrote:go to
and click java.exe file
Campbell Ritchie wrote:
Did you open a new command line? The change is not applied until you open an new command window.
Amit Ghorpade wrote:Just to add on, has he tried executing the command from the JRE installation directory? It will work for sure if its executed from the JDK's bin directory since there won't be any version and path conflicts.
Campbell Ritchie wrote:Putting the jdk1.7 path at the start of the PATH will mean your most up-to-date version of java.exe will be found first. Once the computer has found one version of "java.exe", it will stop looking.