JDK-8044290 : Shortcuts are not created for javaws x64 with JRE 7u55 on Windows OS
  • Type: Bug
  • Component: deploy
  • Sub-Component: webstart
  • Affected Version: 9
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: windows
  • CPU: x86_64
  • Submitted: 2014-05-29
  • Updated: 2015-01-21
  • Resolved: 2014-07-04
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 7 JDK 8 JDK 9
7u76Fixed 8u31Fixed 9 b24Fixed
Description
FULL PRODUCT VERSION :
JDK 9, JDK 8, JDK 7u55, any later release of JDK 7

ADDITIONAL OS VERSION INFORMATION : 
MS Windows x64 OS

A DESCRIPTION OF THE PROBLEM :
If javaws.exe x64 is explicitly used for creation of a desktop shortcut for Java Web Start application, the created shortcut always refers to javaws.exe i586 instead of x64 version on MS Windows x64 OS with both JRE 7u55 i586 and JRE 7u55 x64 installed. Since some Java Web Start applications can be executed only with 64-bit JRE, the users are not able to launch such applications by the created shortcuts.

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1. Install x64 and i586 JRE 9, or JRE 8, or JRE 7 on the host with Windows x64 OS.
2. Create a desktop shortcut for any Java Web Start application, like Notepad demo, by means of "javaws.exe" application from x64 JRE installation. Command line:

"C:\Program Files\Java\<JRE_x64_DIR>\bin\javaws.exe" -import -silent -shortcut http://docs.oracle.com/javase/tutorialJWS/samples/deployment/NotepadJWSProject/Notepad.jnlp

3. Right click on the created shortcut on the desktop, select "Properties", switch to "Shortcut" tab. If "Target" field value starts with "C:\Windows\SysWOW64\javaws.exe" instead of "C:\Windows\System32\javaws.exe", then the bug is reproduced.
Comments
The bug was reproduced by executing the command <JAVA_HOME_x64>\bin\javaws.exe -import -silent -shortcut <JNLP_URL> where as "<JNLP_URL>" the next URL of the publicly available demo application was used http://docs.oracle.com/javase/tutorialJWS/samples/deployment/NotepadJWSProject/Notepad.jnlp on MS Windows 7 x64 OS with the following pairs of JRE 7: - JRE 7u60 b19 x64, JRE 7u60 b19 i586 - JRE 7u55 b13 x64, JRE 7u55 b13 i586 - JRE 7u51 b13 x64, JRE 7u51 b13 i586
04-06-2014