JDK-8027801 : Java Web Start creates shortcuts with broken icons and wrong names in GNOME
  • Type: Bug
  • Component: deploy
  • Sub-Component: webstart
  • Affected Version: 6-pool
  • Priority: P2
  • Status: Resolved
  • Resolution: Fixed
  • OS: linux_redhat_6.2
  • CPU: generic
  • Submitted: 2013-11-04
  • Updated: 2014-03-17
  • Resolved: 2013-11-15
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 6
6u75 b01Fixed
Related Reports
Duplicate :  
Description
FULL PRODUCT VERSION :
Any update of JDK 6

ADDITIONAL OS VERSION INFORMATION :
32-bit / 64-bit Red Hat Enterprise Linux 6.2, 32-bit / 64-bit Oracle Enterprise Linux 6.2

A DESCRIPTION OF THE PROBLEM :
Desktop shortcuts of Java applications are created with broken icons and wrong names by using Java Cache Viewer dialog or "javaws" command line utility.

A screenshot of a desktop with a shortcut of Java application, whose icon is broken, and an exact file of the shortcut are attached to this bug record as files: "Screenshot.png" and "jws_app_shortcut_1383595264822.desktop".

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1. Open a browser and load a page with the URL (http://docs.oracle.com/javase/tutorial/deployment/webstart/running.html#web).
2. Load "Notepad" applet by clicking "Run Notepad" link with a testable JRE 6.
3. Close the applet and start Java Control Panel application.
4. Open Java Cache Viewer dialog from Java Control Panel.
5. Create shortcut of the downloaded "Notepad Demo" application.
6. Notice that a shortcut without standard Java icon and with a human unreadable name instead of "Notepad Demo" appeared on the desktop.
Comments
It was found out that this bug was resolved in JDK 7 by the fix for the bug JDK-6957030 in 2011. But that fix was not ported to JDK 6. It was proven in local environment, that the fix for the bug JDK-6957030 resolves the bug in JDK 6, therefore a solution for this bug should be porting of the fix for the bug JDK-6957030 from JDK 7 to JDK 6.
12-11-2013

The bug is reproducible with any release of JDK 6 only on the next Linux OSs with GNOME desktop: Red Hat Enterprise Linux (RHEL) 6.2 or Oracle Enterprise Linux (OEL) 6.2. The bug is not reproducible on older releases of these OSs, like RHEL 5.6, or on other distributions of Linux OS, like Ubuntu or openSUSE. The bug is not reproducible with JDK 8 or JDK 7. Analysis showed that a reason of this bug is absence of execute "x" permission for the owner "u" of the shortcut file created by Java Web Start. Thus the command provided below allows to display a proper icon and name of the shortcut on a desktop. chmod a+x <SHORTCUT_ABSOLUTE_FILE_PATH>
05-11-2013