Quote Originally Posted by LarssaAndin View Post
I had the same problem and found out that the problem (most likely) is that there are java binaries in your windows directory (up to java 1.7 they were placed there for easy access). Check C:\Windows\System32 and/or C:\Windows\SysWOW64 for java.exe, javaw.exe & javaws.exe. If you remove these three files you get rid of the error.
Success here, too! It got broken after an install of JRE 1.8.73 - once those 3 java executables were removed from system32, cmd worked again.