Solved: Java

Posted at

Running java.exe or javaw.exe,
and having this problem?:

Error: opening registry key 'Software\\JavaSoft\\Java Runtime Environment'
Error: could not find java.dll
Error: Could not find Java SE Runtime Environment.




All you have to do is to rename/remove those files:
C:\\Windows\\System32\\java.exe
C:\\Windows\\System32\\javaw.exe
C:\\Windows\\System32\\javaws.exe
C:\\Windows\\SysWOW64\\java.exe
C:\\Windows\\SysWOW64\\javaw.exe
C:\\Windows\\SysWOW64\\javaws.exe


Since the environment settings makes Windows directory take precedence,
over other path location.

Right after renaming/removing (btw.: no need to reboot nor to log-off),
run where java.exe,
and expect to get something like C:\\Program Files\\Java\\jdk1.7.0_80\\bin\\java.exe,

It will resolve this issue system-wide :]

Enjoy!