Using JDK splash screen from Web Start

Mike Swingler swingler at apple.com
Tue May 1 16:11:10 PDT 2012


On May 1, 2012, at 3:28 PM, Scott Kovatch wrote:

> Hello,
> 
> Java Web Start supports showing a splash screen based on an image resource in the JNLP file. To do this, we load libsplashscreen.dylib and call SplashInit, SplashLoadFile and SplashClose (no animated image support, sorry.)
> 
> This used to work in JDK 6, but now it doesn't. I verified that I'm getting the image and passing it into SplashLoadFile, but no window appears with the image.
> 
> Looking at the implementation in JDK 7 I'm thinking that something is either starting up the AWT, or that there is a dependency of some kind on the AWT. Is this the case? Should libsplashscreen be linked against libawt?  Use of AWT code is not an issue here because Web Start starts a new process that shows the splash screen, but right now I'd be happy if it just worked.
> 
> Any info/help is appreciated.

The Java SE 6 splash-screen support was not contributable, because it directly use raw CGS windows (which were conveniently thread-safe from the Java main() thread).

In JDK7, I believe the windows are now NSWindow based, and won't show up until AppKit has already started and the event loop in pumping. I'm not sure why it isn't work at all, even with a delay.

Regards,
Mike Swingler
Apple Inc.



More information about the macosx-port-dev mailing list