United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-4789162 : javaws on solaris/sparc cannot be invoked via symbolic link

Details
Type:
Bug
Submit Date:
2002-12-05
Status:
Resolved
Updated Date:
2003-01-07
Project Name:
JDK
Resolved Date:
2003-01-07
Component:
deploy
OS:
solaris_8
Sub-Component:
webstart
CPU:
sparc
Priority:
P3
Resolution:
Fixed
Affected Versions:
1.2.0
Fixed Versions:
1.4.2 (b12)

Related Reports
Relates:

Sub Tasks

Description
This bug is same as 4785581 reported for linux, but not the same javaws script. 
If you make symbolic link to the javaws script, then attempt to run javaws, it dosn't work.
>cd /usr/bin
>ln -s /usr/java/javaws/javaws
>javaws
/usr/bin/javaws[38]: /usr/bin/javawsbin:  not found

                                    

Comments
EVALUATION

This bug is slightly different than 4785581 in that it only occurs when
attempting invoke via a direct link to the javaws shell script; as opposed to
invoking with a linked directory on the invocation path.  For this reason
it should be less common - commit to Tiger.

###@###.### 2002-12-09

Requesting to fix for mantis-beta.  This fix is required to fix 4792033: Need
javaws link in /usr/bin on Solaris.

###@###.### 2002-12-11
                                     
2002-12-09
WORK AROUND

The following entry inserted after line 9 in javaws script fix the problem:
 
# Resolve symlinks. See 4152645.
while [ -h "$PRG" ]; do
    ls=`/usr/bin/ls -ld "$PRG"`
    link=`/usr/bin/expr "$ls" : '^.*-> \(.*\)$'`
    if /usr/bin/expr "$link" : '^/' > /dev/null; then
    prg="$link"
    else
    prg="`/usr/bin/dirname $PRG`/$link"
    fi
    PRG=`whence "$prg"` > /dev/null 2>&1
    APPHOME=`/usr/bin/dirname "$PRG"`
done
                                     
2004-08-31
CONVERTED DATA

BugTraq+ Release Management Values

COMMIT TO FIX:
mantis-beta

FIXED IN:
mantis-beta

INTEGRATED IN:
mantis-b12
mantis-beta


                                     
2004-08-31



Hardware and Software, Engineered to Work Together