Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6571199

jre rpm packages does not replace the system version jre

XMLWordPrintable

    • x86
    • linux

      Problems with installation JRE 1.4.2 and 5.0 under Suse 10.0 linux.

      In the documentation (http://jscpreview.sfbay/j2se/1.4.2/jre/install-linux.html) is
      told that:

      *RPM Packages* - A rpm.bin file containing RPM packages, installed
      with the rpm utility. Requires root access to install, and
      installs by default in a location that *replaces the system
      version of the Java platform* supplied by Linux. To use this
      bundle, see ....


      But after installation jre the command java -version gives out old
      system version JRE.

      Tested on decency.russia.sun(Suse 10), stt-04.russia.sun.com(Suse 9.3) and stt-29.russia.sun.com (Suse 10).
       
      This is my log.
      # cat log.decency
       
      1 ---- Default jre
      #java -version
      java version "1.4.2_10"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_10-b03)
      Java HotSpot(TM) Client VM (build 1.4.2_10-b03, mixed mode)
       
      #which java
      /usr/bin/java
       
      # ls -n /usr/bin/java
      lrwxrwxrwx 1 0 0 22 Feb 8 2006 /usr/bin/java -> /etc/alternatives/java
       
      # ls -n /etc/alternatives/java
      lrwxrwxrwx 1 0 0 35 Feb 21 2006 /etc/alternatives/java -> /usr/lib/jvm/jre-1.4.2-sun/bin/java
       
      # /usr/lib/jvm/jre-1.4.2-sun/bin/java -version
      java version "1.4.2_10"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_10-b03)
      Java HotSpot(TM) Client VM (build 1.4.2_10-b03, mixed mode)
       
      #rpm -qa | grep 'j2'
      // no output
      #rpm -qa | grep 'java'
      java-1_4_2-sun-plugin-1.4.2.10-2.2
      java-1_4_2-sun-1.4.2.10-2.2 <----- Default jre
       
      3 ----Install jre 1.4.2_15.
      #rpm -i j2re-1_4_2_15-linux-i586.rpm
       
      ----There is no effect
      #java -version
      java version "1.4.2_10"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_10-b03)
      Java HotSpot(TM) Client VM (build 1.4.2_10-b03, mixed mode)
       
      #rpm -qa | grep 'j2'
      j2re-1.4.2_15-fcs <----- New jre
       
      #rpm -qa | grep 'java'
      java-1_4_2-sun-plugin-1.4.2.10-2.2
      java-1_4_2-sun-1.4.2.10-2.2 <----- Default jre
       
      # /usr/java/j2re1.4.2_15/bin/java -version
      java version "1.4.2_15"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_15-b02)
      Java HotSpot(TM) Client VM (build 1.4.2_15-b02, mixed mode)
       
      4 ----Install jre 1.4.2_13.
      #rpm -i j2re-1_4_2_13-linux-i586.rpm
       
      ----There is no effect
      #java -version
      java version "1.4.2_10"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_10-b03)
      Java HotSpot(TM) Client VM (build 1.4.2_10-b03, mixed mode)
      which java
       
      #rpm -qa | grep 'j2'
      j2re-1.4.2_15-fcs
      j2re-1.4.2_13-fcs <----- New jre
       
      #rpm -qa | grep 'java'
      java-1_4_2-sun-plugin-1.4.2.10-2.2
      java-1_4_2-sun-1.4.2.10-2.2 <----- Default jre
       
      #/usr/java/j2re1.4.2_13/bin/java -version
      java version "1.4.2_13"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_13-b06)
      Java HotSpot(TM) Client VM (build 1.4.2_13-b06, mixed mode)
       
      6 ----Install jre 1.5.0_10.
      #jre-1_5_0_10-linux-i586-rpm.bin
       
      ----There is no effect
      #java -version
      java version "1.4.2_10"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_10-b03)
      Java HotSpot(TM) Client VM (build 1.4.2_10-b03, mixed mode)
       
      #rpm -qa | grep 'j2'
      j2re-1.4.2_15-fcs
      j2re-1.4.2_13-fcs
       
      #rpm -qa | grep 'jre'
      jre-1.5.0_10-fcs <----- New jre
       
      #rpm -qa | grep 'java'
      java-1_4_2-sun-plugin-1.4.2.10-2.2
      java-1_4_2-sun-1.4.2.10-2.2 <----- Default jre
       
      #/usr/java/jre1.5.0_10/bin/java -version
      java version "1.5.0_10"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_10-b03)
      Java HotSpot(TM) Client VM (build 1.5.0_10-b03, mixed mode, sharing)
       
      ===================================================================

            Unassigned Unassigned
            serb Sergey Bylokhov
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: