« Return to Thread: Loading java native extensions

Re: Loading java native extensions

by Wayne Meissner :: Rate this Message:

Reply to Author | View in Thread

2009/7/2 Charles Oliver Nutter <headius@...>:
> On Tue, Jun 30, 2009 at 3:44 PM, Timothy
> Hanson<thanson@...> wrote:
>> How does one load a dll from JRuby? I have Java wrapper classes (generated by SWIG) that wrap C++ code. Before referencing the Java classes, I need to load the DLL. I tried the following:
>
> Hmm...I believe we do twiddle java.library.path to support native
> libraries via FFI/JFFI/JNA. Perhaps what we're doing is interfering
> with loading other libraries?
>
> Any thoughts on this Wayne?

We don't twiddle java.library.path or LD_LIBRARY_PATH at all.

JNA and JFFI both have a custom {jna,jffi}.boot.library.path they
understand to load their stub libraries from, but when loading other
libraries, they both use the standard LD_LIBRARY_PATH (or equivalent).

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


 « Return to Thread: Loading java native extensions