JDK-2224487 : [macosx] Dock Icon defaults to Generic Java Application
  • Type: Backport
  • Backport of: JDK-7159381
  • Component: client-libs
  • Sub-Component: java.awt
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2012-05-15
  • Updated: 2012-07-20
  • Resolved: 2012-07-20
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
7u6 b17Fixed 8Fixed
Comments
EVALUATION There is indeed an issue with our code not honoring a bundle's icon. This issue manifests itself when using AppBundler and should be fixed. SQL Developer, though, uses complicated procedure to launch itself: first, user clicks the .app, then a shell script gets launched, then an executable that, finally, launches "java" process. I've no idea how to distinguish this case for the case of user starting "java" executable via the command line. So, my recommendation is to add the following line to the sqldeveloper-Darwin.conf: AddVMOption -Dapple.awt.application.icon=../../../../../Contents/Resources/SQLDeveloperIcons.icns
26-06-2012

EVALUATION The problem is that we don't take into account the fact that app icon may be specified within app bundle (via Info.plist)
07-06-2012