Try this:
Visit
Java's website.
Scroll down to Java Runtime Environment (JRE) 5.0 Update 9 and click on Download.
Accept the License Agreement and choose either online or offline installation for Windows.
Restart IE and Firefox (which is close and open them again).
Try and see if you have problems.