
As depicted in above image java home is set and is being echoed but when i check for version it gives me latest version. Already restarted the command prompt after setting env variable. OS is Windows 7
Update:
Following is the Path.
..ProgramData\Oracle\Java\javapath;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;;%JAVA_HOME%/bin;
pathvariable - Sachin Guptajava.exeunderWindows\System32. You cannot pretend it doesn't exist. You may have to use the full path ofjdk1.6.0, or just uninstall java 8 - cshu