Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8173753

[macosx] Java command line option -Xdock:name does not work

    Details

    • Subcomponent:
    • CPU:
      x86
    • OS:
      os_x

      Description

      FULL PRODUCT VERSION :
      java version "1.8.0_121"
      Java(TM) SE Runtime Environment (build 1.8.0_121-b13)
      Java HotSpot(TM) 64-Bit Server VM (build 25.121-b13, mixed mode)

      ADDITIONAL OS VERSION INFORMATION :
      Mac OS X Sierra version 10.12.2

      A DESCRIPTION OF THE PROBLEM :
      Supposedly the option -Xdock:name="My Application" when passed to the "java" command should set the name of the running application in the Mac OS X Dock. You can see this name by hovering the mouse of the app's icon in the Dock, or by using the application switcher (press Command and Tab keys).

      This does not work any more. The running application just gets the name "java". It looks like this has been the case since Mac OS X 10.9, according to this blog post:

      https://www.igorkromin.net/index.php/2014/03/05/os-x-mavericks-breaks-the-java-dock-name-functionality/

      Note that a similar option -Xdock:icon to set the Dock icon does still work.



      REPRODUCIBILITY :
      This bug can be reproduced always.

        Attachments

          Activity

            People

            • Assignee:
              azvegint Alexander Zvegintsev (Inactive)
              Reporter:
              webbuggrp Webbug Group
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: