JDK-6277838 : Installing linux jre/jdk bundle on solaris machine displays an Inappropriate error message
  • Type: Bug
  • Component: install
  • Sub-Component: install
  • Affected Version: 6
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: solaris
  • CPU: sparc
  • Submitted: 2005-05-30
  • Updated: 2010-04-04
  • Resolved: 2006-02-15
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 6
6 b72Fixed
Related Reports
Relates :  
Description
JDK-Info:
---------
PIT 39 (respin)


Tested OS:
---------
Sol10


Steps to Reproduce:
-------------------
1) Install linux jdk/jre bundle on solaris machine (./jre160.sh)
2) Enter "yes" to agree license terms.

..
..
Do you agree to the above license terms? [yes or no] 
yes
usage: tail [+/-[n][lbc][f]] [file]
       tail [+/-[n][l][r|f]] [file]
./jre160.sh: test: argument expected
ramkumar:/tmp/ramkumar 222 % 

An Inappropriate error message is displayed.


Whereas, when installing Solaris bundle (jre.sh) on linux machine, an appropriate error message is displayed:

The download file appears to be corrupted.  Please refer
to the Troubleshooting section of the Installation
Instructions on the download page for more information.
Please do not attempt to install this archive file.
jlab410:/tmp/ramkumar/test # 

###@###.### 2005-05-30 09:43:24 GMT

Comments
SUGGESTED FIX Determine the platform and set the tail_args and echo_args variables at runtime instead of build time. Something like the following will fix the problem: if [ "`uname -s`" = "Linux" ]; then echo_args="-e " tail_args="-n " fi This code need to go in one of the here-document, before the variables are used. For example, a good place would be just before the statement: outname=install.sfx.$$ The old 4980600 fix should be removed from the code.
05-01-2006

EVALUATION This bug is caused by the fix for 4980600. The variables tail_args and echo_args are set at build time. In the case of tail, Solaris does not recognize these arguments.
05-01-2006