The issue is that Your.app/Contents/PlugIns/Java.runtime/Contents/Home/jre/lib/libjfxwebkit.dylib libray is importing this library libicucore.A.dylib. And this issue is caused (probably) by this issue: Update to Newer Version of WebKit.
You can verify the issue by running otool for Java 1.8.0_51, 1.8.0_60 and 1.8.0_65. You will find that Java is importing that library since minor version 60.
There are 3 possible solutions.
- Remove libjfxwebkit.dylib from your application
- If you need that library, downgrade to Java 1.8.0_51
- Wait after Packager cannot bundle Mac App Store Apps because JavaFX WebKit uses apple private APIs is resolved
I just got info by Martijn Verburg that these this is issue will be fixed:
I have got this info from mail group:
The javapackager fix for JDK 8u72 does exactly this when generating .pkg files. So in short, libjfxwebkit.dylib is unchanged for 8u72, but will be excluded when generating an app for the Apple app store.So, the solution is to remove libjfxwebkit.dylib from your .app (in case you package the