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.
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.
- duplicates
-
JDK-8102047 Mac: Impossible to use -splash:<image> with JavaFX 2.2 and JDK 7
-
- Closed
-