Follow these steps to remove older version of Java components and update to the latest version:
Download the latest version of Java Runtime Environment [JRE].
Click the Download JRE button to the right.
Select Windows on platform combobox and check the box that says:
Accept License Agreement,then click continue.
The page will refresh.
Click on the link to download Windows Offline installation and save to your desktop.
Close any programs you may have running - especially your web browser.
Go to Start > Control Panel double-click on Add/Remove programs and remove all older versions of Java.
If running Win Vista/Win 7,go to Control Panel > Programs and Features.
Check any item with Java Runtime Environment (JRE or J2SE) in the name.
Click the Remove/Uninstall or Change/Remove button.
Repeat as many times as necessary to remove each Java version.
Reboot your computer once all Java components are removed.
Then from your desktop double-click on jre-7-windows-i586.exe to install the newest version.
If running Win Vista/Win 7,right click on jre-7-windows-i586.exe and select Run as Administrator.