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

Java's system tray support doesn't work in a JavaFX program on Mac OS

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P4 P4
    • 8
    • fx2.1
    • javafx
    • Mac OS X 10.7.4 x86_64 with java 1.7.0_04, javafx 2.2.0-beta

      On Windows and Linux, java.awt.SystemTray.isSupported() returns true. It also returns true on Mac OS X running an ordinary Java program. However, if you're running a JavaFX program, SystemTray.isSupported() prints

      java[93497:e03] [JRSAppKitAWT markAppIsDaemon]: Process manager already initialized: can't fully enable headless mode.

      and returns false.

      Furthermore, when I close the main window, java segfaults:
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # SIGSEGV (0xb) at pc=0x000000010a4de7f6, pid=93554, tid=140735109491040
      #
      # JRE version: 7.0_04-b21
      # Java VM: Java HotSpot(TM) 64-Bit Server VM (23.0-b21 mixed mode bsd-amd64 compressed oops)
      # Problematic frame:
      # V [libjvm.dylib+0x49a7f6]

      and the Mac pops up a window with some sort of dump (attached). Problem is easily demonstrated by creating a new JavaFX project in NetBeans, and adding a call to java.awt.SystemTray.isSupported() to the start method.

            anthony Anthony Petrov (Inactive)
            bmellejfx Bill van Melle (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: