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: 6385672
Votes 0
Synopsis JRE installer fails to set executable attribute on Linux (jrl-extractor?)
Category java:build
Reported Against
Release Fixed
State 3-Accepted, bug
Priority: 3-Medium
Related Bugs 6268897
Submit Date 14-FEB-2006
Description
A DESCRIPTION OF THE REGRESSION :
The JRE installer for mustang builds 70 and 71, provided as jar file, fails to set the executable bit on executable files. This also happens for the debug JDK distributed in a jar as well.

Platform:

Linux smaug 2.6.13-15.8-default #1 Tue Feb 7 11:07:24 UTC 2006 i686 i686 i386 GNU/Linux
SUSE LINUX 10.0 (i586)
VERSION = 10.0



REPRODUCIBLE TESTCASE OR STEPS TO REPRODUCE:
Problem occurs during JRE installation, regression of mustang b71 w.r.t 5u6 detailed in the paragraphs called "Expected Result" and "Actual Result".

RELEASE LAST WORKED:
5.0 Update 6

RELEASE TEST FAILS:
mustang-b70

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Installing a Java 5 JRE on Linux works smoothly, all executable files (including, but not limited to those below bin/)
have their executable bit set:

  xxxxx@xxxxx  :~> chmod 755 jre-1_5_0_06-linux-i586.bin
  xxxxx@xxxxx  :~> ./jre-1_5_0_06-linux-i586.bin
Sun Microsystems, Inc. Binary Code License Agreement
[removed all the legalese]
Do you agree to the above license terms? [yes or no]
yes
Unpacking...
Checksumming...
0
0
Extracting...
UnZipSFX 5.42 of 14 January 2001, by Info-ZIP (Zip-  xxxxx@xxxxx  ).
   creating: jre1.5.0_06/

Creating jre1.5.0_06/lib/deploy.jar
[removed extraction messages]
Done.
  xxxxx@xxxxx  :~> cd jre1.5.0_06/bin/
  xxxxx@xxxxx  :~/jre1.5.0_06/bin> ls -l
total 1452
-rwxr-xr-x  1 cwe users   4153 2005-11-10 22:47 ControlPanel
-rwxr-xr-x  1 cwe users  64812 2005-11-10 21:48 java
-rwxr-xr-x  1 cwe users  26366 2005-11-10 22:47 java_vm
-rwxr-xr-x  1 cwe users 175978 2005-11-10 22:47 javaws
-rwxr-xr-x  1 cwe users  72752 2005-11-10 22:00 keytool
-rwxr-xr-x  1 cwe users  72752 2005-11-10 22:00 kinit
-rwxr-xr-x  1 cwe users  72752 2005-11-10 22:01 klist
-rwxr-xr-x  1 cwe users  72752 2005-11-10 22:01 ktab
-rwxr-xr-x  1 cwe users  72752 2005-11-10 22:26 orbd
-rwxr-xr-x  1 cwe users  72752 2005-11-10 22:27 pack200
-rwxr-xr-x  1 cwe users  72760 2005-11-10 22:00 policytool
-rwxr-xr-x  1 cwe users  72752 2005-11-10 22:21 rmid
-rwxr-xr-x  1 cwe users  72752 2005-11-10 22:20 rmiregistry
-rwxr-xr-x  1 cwe users  72752 2005-11-10 22:26 servertool
-rwxr-xr-x  1 cwe users  72752 2005-11-10 22:26 tnameserv
-rwxr-xr-x  1 cwe users 394235 2005-11-10 22:26 unpack200

ACTUAL -
Last build tested is 71, but the form only let me select b70 (where the problem occurs as well).

Installing mustang build 71 JRE basically works, but executable bits are missing everywhere except on directories.
Even after manually setting all files below bin/ to executable, parts of Java still don't work (for instance java.awt.Robot, which requires yet another executable, lib/i386/awt_robot.

  xxxxx@xxxxx  :~> /usr/local/java/jdk1.5.0_06/bin/java -jar jre-6-rc-bin-b71-linux-i586-09_feb_2006.jar
Bundle size = 30523537
[Selected an installation dir through the GUI, waited until installation done]
  xxxxx@xxxxx  :~> cd /usr/local/java/jre1.6.0
  xxxxx@xxxxx  :/usr/local/java/jre1.6.0> cd bin
  xxxxx@xxxxx  :/usr/local/java/jre1.6.0/bin> ls -l
total 736
-rw-r--r--  1 cwe users     10 2006- customer -13 14:48 ControlPanel
-rw-r--r--  1 cwe users  47395 2006- customer -13 14:48 java
-rw-r--r--  1 cwe users  24878 2006- customer -13 14:48 java_vm
-rw-r--r--  1 cwe users  74135 2006- customer -13 14:48 javaws
-rw-r--r--  1 cwe users   6345 2006- customer -13 14:48 jcontrol
-rw-r--r--  1 cwe users  47550 2006- customer -13 14:48 keytool
-rw-r--r--  1 cwe users  47782 2006- customer -13 14:48 orbd
-rw-r--r--  1 cwe users  47618 2006- customer -13 14:48 pack200
-rw-r--r--  1 cwe users  47814 2006- customer -13 14:48 policytool
-rw-r--r--  1 cwe users  47550 2006- customer -13 14:48 rmid
-rw-r--r--  1 cwe users  47550 2006- customer -13 14:48 rmiregistry
-rw-r--r--  1 cwe users  47546 2006- customer -13 14:48 servertool
-rw-r--r--  1 cwe users  47782 2006- customer -13 14:48 tnameserv
-rw-r--r--  1 cwe users 189268 2006- customer -13 14:48 unpack200

Release Regression From : 1.5
The above release value was the last known release where this 
bug was known to work. Since then there has been a regression.
Posted Date : 2006-02-14 22:08:05.0
Work Around
N/A
Evaluation
We never released our JRE and DEBUG binary products using our new click wrap installer. But this is still bug but not a regression. If and when we rewrite our click wrap installer this will be fixed...
Posted Date : 2006-06-05 19:40:06.0
Comments
  
  Include a link with my name & email   

Submitted On 21-OCT-2006
thk, 
fanzongqi@tom.com
George Fan


Submitted On 21-OCT-2006
thk,
again
George Fan


Submitted On 03-FEB-2008
http://www.tom.com/
http://tw.msn.com/
http://tw.yahoo.com/



PLEASE NOTE: JDK6 is formerly known as Project Mustang