Mac JNILIB Self-Contained DMG

Mark Howe mark.howe at
Sun Feb 3 00:05:51 PST 2013

Hi Will, sorry took so long to respond

Don't have a really solid answer yet, but our suggestion for "best practice", is drop all the dylibs in the Resources/Java folder along with the jars and set java.library.path to /path/to/bundle/Contents/Resources/Java. Does that help?


On Jan 22, 2013, at 11:34 AM, Will Hoover wrote:

> Thanks Mark!
> -----Original Message-----
> From: Mark Howe [mailto:mark.howe at] 
> Sent: Tuesday, January 22, 2013 1:31 PM
> To: Will Hoover
> Cc: openjfx-dev at
> Subject: Re: Mac JNILIB Self-Contained DMG
> Hi Will, I will look into this and get back to you
> Mark
> On Jan 3, 2013, at 9:56 AM, Will Hoover wrote:
>> 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:platform>
>>   <fx:jvmarg value="-Djava.library.path=/some/path/to/lib"/>
>> </fx:platform>
>> ...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