why do I get this? How can I fix it?
C:\\Users\\ash>java version Error: Registry key \'Software\\JavaSoft\\Java Runtime Environment\'\\Cu
I had to remove the Common Files javapath from the 'Path' that was conflicting, in order to make it work. Now thankfully the java -version works just fine.
C:\Program Files (x86)\Common Files\Oracle\Java\javapath