JDK-4789162 : javaws on solaris/sparc cannot be invoked via symbolic link
  • Type: Bug
  • Status: Resolved
  • Resolution: Fixed
  • Component: deploy
  • Sub-Component: webstart
  • Priority: P3
  • Affected Version: 1.2.0
  • OS: solaris_8
  • CPU: sparc
  • Submit Date: 2002-12-05
  • Updated Date: 2003-01-07
  • Resolved Date: 2003-01-07
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 Availabitlity Release.

To download the current JDK release, click here.
Other
1.4.2 b12Resolved
Related Reports
Relates :  
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
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: mantis-beta FIXED IN: mantis-beta INTEGRATED IN: mantis-b12 mantis-beta
2004-08-31

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

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