Java

Java in Action Downloads Help Center

Installing Java

   

How do I upgrade Java using RPM?


This article applies to:
  • Platform(s):
    Sun Java Desktop System, Red Hat Linux, SUSE Linux
  • Browser(s):
    Netscape 6.2x, Netscape 7, Mozilla 1.4+


The recommended method of upgrading Java Runtime Environment (JRE) using RPM is to use the upgrade option. For example:
  • Open new Terminal Window
  • Type: rpm -Uvh <package-file>
    For example: to upgrade JRE 1.5.0, type: rpm -Uvh jre1.5.0
The vh options are used to provide the user with feedback during the installation process.

Using the upgrade option prevents more than one JRE installation of the same package from being installed on the system at the same time. This is generally preferred behavior. Only users that work in environments that require multiple JRE installations at the same time should have multiple installations.


Note: The package name's for JRE has changed between 1.4.2 and 5.0. This is documented on java.sun.com. Because these packages have different names, using the upgrade option to install JRE 1.5.0 on a machine that has JRE 1.4.2 will not automatically remove the old version. In this case, you should uninstall JRE 1.4.2 after installing JRE 5.0.

NEED MORE HELP?
If you require further assistance, please make sure you check through our Help and FAQ sections thoroughly. We probably have a page that answers your question.

You may find information on the following topics in the Help section:
Installing Java
Configuring Java
Error Messages
Applet Application




Help Resources
> Installing Java
> Configuring Java
> Error Messages
> Applet Application
> Legal

 

FAQ
> General Questions
> Java for Mobile Devices

 

Select Language | Java Wear | Newsletter | About Java Technology | Partner with Us | Developers | java.com Changes
Privacy | Terms of Use | Trademarks | License | Disclaimer | Contact

Sun Microsystems