JDK-4785581 : javaws on linux cannot be invoked via symbolic link
  • Type: Bug
  • Component: deploy
  • Sub-Component: webstart
  • Affected Version: 1.2.0
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: linux
  • CPU: x86
  • Submitted: 2002-11-27
  • Updated: 2002-12-17
  • Resolved: 2002-12-17
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.
Other
1.4.2 b11Fixed
Description
On Linux, if you make a symbolic link to the javaws directory, then attempt
to run javaws through the link, it does not work.  Only seems to happen in
bash shell.  Only happens when configuration file does not yet exist.

$ ln -s /scratch2/sbohne/j2re1.4.2/javaws ~/javaws
$ ~/javaws/javaws
Java Web Start splash screen process exiting .....
Bad installation. No JRE found in configuration file: No such file or directory

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: mantis-beta FIXED IN: mantis-beta INTEGRATED IN: mantis-b11 mantis-beta
31-08-2004

SUGGESTED FIX Should be invoking Linux javaws script with bash -P to make bash follow symbolic links.
31-08-2004

EVALUATION Requesting to fix for Mantis. ###@###.### 2002-11-27 In the javaws shell script we used 'bash' shell on linux to invoke the shell to execute the script. Unfortunately, by default bash does not resolve symbolic links when the 'cd' command is used. This caused APPHOME to be set wrong if javaws was invoked through a symbolic link on Linux. The fix is to invoke bash with -P, causing symbolic link to be resolved to the physical directory before cding to it. >From bash man page: -P If set, do not follow symbolic links when performing commands such as cd which change the current directory. The physical direc�� tory is used instead. ###@###.### 2002-12-04
04-12-2002