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: 4789162
Votes 0
Synopsis javaws on solaris/sparc cannot be invoked via symbolic link
Category javawebstart:other
Reported Against 1.2
Release Fixed 1.4.2(mantis-b12)
State 10-Fix Delivered, bug
Priority: 3-Medium
Related Bugs 4792033
Submit Date 05-DEC-2002
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
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
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.

 xxxxx@xxxxx  2002-12-09

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

 xxxxx@xxxxx  2002-12-11
Comments
  
  Include a link with my name & email   


PLEASE NOTE: JDK6 is formerly known as Project Mustang