Using Windows Updates you can install the latest service packs for your operating system and you can install the latest version of Java from the Sun Microsystems website. This will ensure that your computer programs are compatible with the applications that you are trying to use.
Unlike some other downloadable programs, newer Java installations are compatible with older versions, so there is no need to purge your system of existing software first.
However, there are a number of different Java error messages that indicate that an installation attempt has failed. If this happens, the manufacturer recommends that you start by removing all traces of the failed installation from your computer to prevent interference before trying again.
Once you have removed the old installation, you can try the Java manual offline download option on the Sun Microsystems site.
If you are using the Mozilla Firefox web browser, follow these steps: