If an error occurs during installation, the installer creates log files on your computer that include details about the error. Providing us with the log files from a failed installation will allow us to do a thorough analysis of the issue.
Note: We recommend you to delete all versions of Java from your system before proceeding.
For more information see Java uninstaller tool
Install Java through command prompt so that it can generate necessary log files to troubleshoot the issue.
Goto java.com and click on the Free Java Download button.
Click on the Save button and save Java software on the Desktop
Verify that Java software is saved on the Desktop.
Open Windows Command Prompt window. Windows XP: Click Start -> Run -> Type: cmd Windows Vista and Windows 7: Click Start -> Type: cmd in the Start Search field.
cd <Java download directory> (for example Downloads or Desktop etc.)
In the Command Prompt window Type: <Java download file name> .exe /LV* %TEMP%\jreMSI.log
Where <Java download file name> is name of the file you downloaded.
If you download Java using Internet Explorer, <Java download file name> will be jre-7uxx-windows-i586.exe (If you have downloaded Java through Offline method) or JavaSetup7uxx.exe (If you have downloaded Java through Online method), where 7uxx is the Java update (for e.g. 7u10, 7u21, 7u25 and so on) Mozilla Firefox, <Java download file name> will be jxpiinstall.exe Chrome, <Java download file name> will be chromeinstall-7uxx.exe, where 7uxx is the Java update (for e.g. 7u10, 7u21, 7u25 and so on)
Follow all the prompts to complete Java installation.
How to Get the Log Files?
Go to Start > Run > Type: %TEMP% and press Enter. or
Go to Start > My computer >
c: > Documents and Settings >
User > Local Settings > Temp
Windows Vista and Windows 7:
Go to Start > Type: %TEMP% in Start Search field. or
Go to Start > Computer >
c: > users >
username > AppData > Local > Temp
Look for following files in Temp folder: