You may need to uninstall older versions of Java before installing a new version. Check as per below
*Start button
*Programs,
*Control Panel,
*Programs and Features.
*Select Java from the list,
*Uninstall. You may need to provide Admin confirmation.
*Note- If more than one version of Java is listed, uninstall the older versions first.
To install Java in IE9.
*Open Internet Explorer
*Go to the
Java.com website.
*Click the Free Java Download button, and then click Agree and Start Free Download.You may be prompted for administrator confirmation.
*On the Notification bar, click Run. Provide admin confirmation if necessary.
*Install.
*Close.