We deploy our application as a JNLP launch file and/or as a webpage applet.

I have a customer that updated his MAC OSX system to the latest Java Version 1.8_40. After upgrading the JNLP launch stopped working. It seems to start Java (flashes blue java logo) then stops. No Exception is thrown. I suspect yet another OSX security hurdle.

We adjusted his OSX Security settings to trust our application.

We adjusted his Java security to trust our site.

We also adjusted the Safari preferences to allow the application to run unrestricted ("unsafe mode").

The application is signed with a code signing certificate.

The customer can use the Applet launch method using the safari Java plugin.

All other customers (OSX & Windows) are generally fine.

If this is a new MAC Java issue I'd like to get ahead of it.

Anyone else out there see this? Any clues about what is causing the issue?

解决方案

Our guess is that the cause of this bug has been backported to 8u40. We find that the application cannot get focus once the new blue Java splash screen is shown. We can also reproduce this on all the demo webstart apps on Oracle's own site, so it isn't our code.

You can confirm this bug by running your webstart instance with -Xnosplash to skip that splash screen. Unfortunately you cannot add that parameter to the jnlp file.

We can only reproduce this problem on OSX 10.10 (Yosemite).

A workaround (if you can control the client Java settings) is to add "-Xdebug" in Java Control Panel -> Java -> View... -> Runtime Parameters.

Update: the bug has been fixed and backported to 1.8u40. Oracle have also silently updated their downloads to the new build (1.8u40b27) as can be seen here I don't know that people already running 1.8u40 will get an update automatically.

Logo

华为开发者空间,是为全球开发者打造的专属开发空间,汇聚了华为优质开发资源及工具,致力于让每一位开发者拥有一台云主机,基于华为根生态开发、创新。

更多推荐