Please follow these steps to remove older version Java components and update.
Download the latest version of Java Runtime Environment (JRE) 6 Update 10
Scroll to Java Runtime Environment (JRE) 6 Update 10 and click on the download button
http://java.sun.com/javase/downloads/index.jsp
(if you don't want the google toolbar -- uncheck this option before installing Java.)
Click on the Accept License Agreement button
Next Select your Platform and check the box that says: "I agree to the Java SE Runtime Environment 7 License Agreement.".
Download Now! Windows Offline Installation, Multi-language
Now close all windows, including your browser.
Double click on the Java installation that you downloaded and follow the prompts.
NEXT-remove all older versions of Java
Go to Start > Control Panel double-click on the Software icon > add/remove programs.
Search in the list for all previous installed versions of Java. (J2SE Runtime Environment.... )
Select it and click Remove.
Close any programs you may have running - especially your web browser.
Repeat as many times as necessary to remove each older Java versions.
Reboot your computer once all Java components are removed.