I normally still use Java 7 for all my coding projects (it\'s a company \"politics\" issue), but I installed Java 8 for one third-party project I am contributing to. Now, it see
Change registry key **HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\CurrentVersion**
to point to 1.7
Copy java.exe,javaw.exe and javaws.exe
from your java 1.7 version to Windows\System32
folder
(Since the corresponding files of java 1.8 are already there, you might have to overwrite with admin permissions)
(OOps actually not required 3rd step )
Open a new cmd window and check
java -version