JDK-8051890 : Java Web Start raises "Unable to create a shortcut for " dialog
  • Type: Bug
  • Component: deploy
  • Sub-Component: webstart
  • Affected Version: 7u60,7-pool,8-pool,9
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: windows
  • CPU: generic
  • Submitted: 2014-07-24
  • Updated: 2015-06-03
  • Resolved: 2014-09-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.
JDK 7 JDK 8 JDK 9
7u80Fixed 8u40Fixed 9 b33Fixed
Related Reports
Relates :  
Description
FULL PRODUCT VERSION :
JDK 9, JDK 8, JDK 7u60, any later release of JDK 7

ADDITIONAL OS VERSION INFORMATION :
MS Windows 7 x64 OS

A DESCRIPTION OF THE PROBLEM :
A desktop shortcut requested by JNLP file cannot be created for Java Web Start application with either 32-bit or 64-bit JRE 7u60 on MS Windows OS and "Application Error" dialog with the message "Unable to create a shortcut for <APP_NAME>" is shown. However, if "OK" or "Details" button of the shown dialog is clicked Java Web Start application loads successfully.

The bug reproduced with JRE 7u67 is shown on the attached screenshot "UnableToCreateShortcutWithJRE7u67.JPG".

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1. Upload JNLP and JAR files from the attached archive file "ShortcutIsNotCreatedForJavaWSApplication.zip" with the test case into a directory on a web server.
2. Install the testable JRE 9, JRE 8 or JRE 7.
3. Open a web browser and load "ShortcutIsNotCreatedForJavaWSApplication.jnlp" file with the test case from the step #1.
4. It can be observed that the shortcut is not created and the former mentioned "Application Error" dialog is shown, after "OK" button is clicked on the raised "Desktop Integration Warning" dialog with "The application would like to create shortcuts. Do you want to continue?" message.
Comments
sounds like it is just a bug for getCanonicalHome to ever return "http://10.162.81.186/8051890/Referenced.jnlp.jarjnlp", or for the original jnlp to ever be cached there. getCanonicalHome should either return a real url to the jnlp file, or the string representation of the url to the main jar, with "jnlp" applended. The main jar has to be downloaded before an app can start, so if it is not in the main jnlp file, the extension jnlp files must be downloaded also.\ What is the path to getCanonicalHome that comes before extension jnlp files are downloaded ?
12-09-2014

The screenshot "UnableToCreateShortcutWithJRE7u67.JPG" demonstrating the bug with JRE 7u67 and the test case "ShortcutIsNotCreatedForJavaWSApplication.zip" were attached to the bug record.
06-08-2014

The issue was reproduced with JRE 9 b25, JRE 8u11 b12, JRE 7u67 b01 by means of the attached test case on MS Windows OS. It was defined that: 1. The issue is reproducible, if Java Web Start application's main JNLP file does not declare any JAR file in <resources> element and contains <extension> subelement referring to the secondary JNLP file with <component-desc> element and all required JAR files declared in <resources> element. 2. The issue appeared in JRE 7u51 b04 and is a side effect of the fix for JDK-8026002, it was practically proven that reversion of JDK-8026002 fix in JDK 7 latest development source code leads to creation of the shortcut, though the application is not loaded successfully.
06-08-2014