When running java -version, I was getting an error
Error: could not open `C:Windowsjrelibamd64jvm.cfg’
Also before that, I was trying to run Eclipse and got
Failed to load the JNI shared Library (JDK)
. Since I am on a x64 OS, with the same builds of Eclipse and Java, my version error was the tip off.
I used to have Java on this machine but had since removed it months ago. I am thinking this may be as to why the installer and java execution failed. TO resolve this, Delete the c:windowsjre folder. You should then be able to use Java again.
Information from this link. Transcribed with my personal experiences.
Prior Last installed version of Java:
jre-7u25-windows-x64.exe
Currently installed Java version:
jre-7u60-windows-x64.exe