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

Java's splash screen doesn't work in a JavaFX program on Mac OS

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • fx2.1
    • javafx
    • Mac OS X 10.7.4 x86_64 with java 1.7.0_04
      Either Javafx 2.2.0-beta or 2.1.0

      I have a JavaFX program that uses java.awt.SplashScreen. It works fine on windows and linux. On the Mac, there are two problems:

      1. If I run a jar with a splash screen (either with the SplashScreen-Image attribute in the manifest or the -splash command-line option), the program hangs before even calling my Application#start method.

      2. If I run a jar that does not have a splash screen, but I call java.awt.SplashScreen.getSplashScreen(), it throws java.awt.HeadlessException.

      Either problem is easily demonstrated by creating a new JavaFX project in NetBeans, and adding a call to java.awt.SplashScreen.getSplashScreen() to the start method.

            kcr Kevin Rushforth
            bmellejfx Bill van Melle (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: