Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 6186146
Votes 0
Synopsis Linux installation docs and RPM installation process disagree
Category guides:none
Reported Against
Release Fixed mustang(b99)
State 10-Fix Delivered, bug
Priority: 3-Medium
Related Bugs 5063669 , 5109119
Submit Date 28-OCT-2004
Description
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
  xxxxx@xxxxx   10/28/04 18:19 GMT
Updated the Java SE 6.0 installation docs with the latest instructions.
Posted Date : 2006-09-26 11:00:54.0
Work Around
Just be sure to uninstall pre-FCS releases of 1.5.0, and become super-user before running the binary.
  xxxxx@xxxxx   11/1/04 18:04 GMT
Evaluation
The <release>-linux-i586-rpm.bin files for JRE/JDK 5.0 now include code to automatically install the RPM, instead of simply extracting the RPM files.  The Linux installation notes on http://java.sun.com/ should be updated to reflect this.  It is also important to document the need to uninstall any pre-FCS releases of 1.5.0 prior to installation of the FCS pacakges.

I have provided the correct steps to document in the suggested fix, and am re-assigning this to the Docs team.
  xxxxx@xxxxx   11/1/04 18:04 GMT
Comments
  
  Include a link with my name & email   


PLEASE NOTE: JDK6 is formerly known as Project Mustang