I have installed jre version 1.8.0_51 on a 64-bit Windows 7. Some time after the installation I could not run java programs anymore, seemingly because the installation dissapeared. If I run "java -version" in the command line, then java is not recognized. If I reinstall the java it works for some time again, and after that it is not recognized anymore. So I always have to reinstall the java every time I want to run a program.
I don't know how to find out what's happening, but it is extremely annoying, any hint would be much appreciated!