why do I get this? How can I fix it?
C:\\Users\\ash>java version Error: Registry key \'Software\\JavaSoft\\Java Runtime Environment\'\\Cu
In my case the regedit information was correct and the problem was solved by doing the below:
1) setting JAVA_HOME to jdk - set JAVA_HOME=C:\Program Files\Java\\bin 2) setting PATH to jre - set PATH="C:\Program Files\Java\\bin"