Few words about this annoying error:
The cause is the C:\ProgramData\Oracle\Java\javapath symlink system that isn’t fully working.
The quick solution is to add the full path to your own jre’s bin folder (Ex.: C:\Program Files (x86)\Java\jre1.x.y_z\bin) to the PATH (Windows System Variable).
Testing that is all ok can be made also by running “java -version”.
If other java bin is missing it can be restored from the no-extension zip file from C:\ProgramData\Oracle\Java\installcache .
Windows Application Registration:
https://msdn.microsoft.com/en-us/library/windows/desktop/ee872121.aspx