I\'ve JDK 1.7 installed on my windows 7 machine and after installing JDK 1.8 u20 I\'m having following error:
C:\\>java -version
Error: Registry key \'Sof
If you are not comfortable to remove any files in Windows manually, just put your JAVA_HOME path in the front of Windows dirs.
Define JAVA_HOME environment variable in Windows 7 and use it in variable PATH on first position of Path variable.
JAVA_HOME -> D:\dev\Java\jdk1.8.0_45
Path -> %JAVA_HOME%\bin;%SystemRoot%\system32;