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

Linux installation docs and RPM installation process disagree

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 6
    • 5.0
    • docs
    • b99
    • x86
    • linux

      FULL PRODUCT VERSION :
      Java version "1.5.0"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-b64)
      Java HotSpot(TM) Client VM (build 1.5.0-b64, mixed mode, sharing)


      ADDITIONAL OS VERSION INFORMATION :
      Linux crisp4 2.6.5-7.108-default #1 Wed Aug 25 13:34:40 UTC 2004 i686 i686 i386 GNU/Linux


      A DESCRIPTION OF THE PROBLEM :
      JDK 5 Installation notes are at:

      http://java.sun.com/j2se/1.5.0/install-linux.html#install-pkg

      The documented steps in brief are:

      1. Download and check the file size.

      2. Extract the contents of the downloaded file.

      3. Become root by running the su command and entering the super-user password.

      4. Run the rpm command to install the packages that comprise the JDK:

      rpm -iv jdk-1_5_0_<version>-linux-i586.rpm

      5. Delete the bin and rpm file if you want to save disk space.

      6. Exit the root shell.


      The principal issue is that the actual extraction script also runs the "rpm -iv ... ".
      This means there is one less step, and it means you must be root when you extract the rpm file.

      This is related to the issue of installing the FCS version where a beta version has been already installed. The installation notes define no extra required steps, yet the actual installation fails in this case until the sysadmin applies a workaround.


      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Install JDK 1.5 beta 2, then follow the installation instructions for JDK 1.5.0.


      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Was expecting successful installation.

      ACTUAL -
      Installation failure.

      There were many "file conflict" messages, and the install removed all
      files in the /usr/java directory while reporting that jdk-1.5.0 was installed.

      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      Sorry, not available.
      ---------- END SOURCE ----------

      CUSTOMER SUBMITTED WORKAROUND :
      Follow the initial installation with:

      rpm -U --replacepkgs jdk-1_5_0-linux-i586.rpm
      ###@###.### 10/28/04 18:19 GMT
      Updated the Java SE 6.0 installation docs with the latest instructions.

            duke J. Duke
            gmanwanisunw Girish Manwani (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: