« Return to Thread: Loading java native extensions

RE: Loading java native extensions

by Tim Hanson :: Rate this Message:

Reply to Author | View in Thread

I was able to get it to work by embedding the System.loadLibrary() directly in the Java code and invoking that from JRuby.

-----Original Message-----
From: Charles Oliver Nutter [mailto:headius@...]
Sent: Thursday, July 02, 2009 9:49 AM
To: user@...
Subject: Re: [jruby-user] Loading java native extensions

On Wed, Jul 1, 2009 at 3:57 PM, Wayne Meissner<wmeissner@...> wrote:
> 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).

Ok, thanks Wayne.

Tim: Maybe you can try to run JRuby without the startup script, as in

java -cp lib/jruby.jar org.jruby.Main script_which_uses_dll.rb

If you can get it working that way, as you did with normal Java code,
then the problem could be in our startup script.

- Charlie

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

    http://xircles.codehaus.org/manage_email



 « Return to Thread: Loading java native extensions