This article discusses 10 things you can do when Java fails to install.
I have seen a couple of situations in which an installation error was displayed even though Java installed correctly.
In Windows 8, the option to change the User Account Control settings is found in the Control Panel under System And Security | Action Center.
If Internet Explorer is configured to use a higher-than-default security level or if it is running a custom security level, there is a possibility that Java may be blocked.
Try creating a new user and assign that user local administrative permissions.
Then, log in using the new user account and try installing Java.
If you run into problems installing Java on Windows 7 or Windows 8, try installing Java as an administrator.
The easiest way to do this is to go to this special test page, which will tell you conclusively whether Java is working.
In these situations, you should use the Windows Control Panel to remove any instances of Java.
After doing so, use the Microsoft uninstaller to clean up any Java fragments. The Web installer for Java tends to be a little bit buggy.
It seems that more and more Web applications are requiring Java.
Unfortunately, it can sometimes be tough to get Java to install properly.