Mac JNILIB Self-Contained DMG

Will Hoover java.whoover at
Thu Jan 3 09:56:00 PST 2013

I would like to get some feedback on best practices for including a JNILIB
in a self-contained JavaFX application (with bundled JRE using <fx:deploy>).
In Windows we can use a drop-in DLL resource by including
/package/windows/runtime/jre/bin/some.dll to be included in the bundled JRE,
but on a Mac I'm not sure what the correct approach would be. I was thinking
of something like:

    <fx:jvmarg value="-Djava.library.path=/some/path/to/lib"/>

...but that seems like it would be a bit clunky.

Is there a way to do this on an OSX build that is similar to the Windows
approach (i.e. in /package/macosx/runtime/jre/bin/some.jnilib)?

More information about the openjfx-dev mailing list