Java

Java in Action Downloads Help Center

Help Resources
Search Java Help


Was my version of Java installed with 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+
  • Java version(s): All JRE Versions

If a version of Java Runtime Enviornment(JRE) is installed on the system, but is not listed by the RPM query, then it is not an RPM installation. The RPM database can be queried to determine what packages have been installed. This command will try to locate any JRE on the system.
  1. Open new Terminal Window
  2. Type following command: rpm -qf /usr/java/jre1.5.0
    (This command is used to find the installation of JRE 1.5.0. Change the version number if you want to find other versions)
This command will try to locate any Java Development KIT (JDK) and JRE on the system.
  1. Open new Terminal Window
  2. Type: rpm -q jdk jre
This command will give the directory name of any JRE installation on the system.
  1. Open new Terminal Window
  2. Type: rpm -q --list jre | grep "bin/java"

Select Language | Java Wear | Newsletter | About Java Technology | Partner with Us | Developers
Privacy | Terms of Use | Trademarks | License | Disclaimer | Support

Sun Microsystems