This is great news... I was staring at a ton of integration work for an
upcoming project, whew! (sounds much easier with JNA)

Thanks Tim Wall and thanks Charlie for posting that email to the list!

M

On 4/30/07, Wayne Meissner <[EMAIL PROTECTED]> wrote:



Charles Oliver Nutter wrote:

> [EMAIL PROTECTED] wrote:
>> I can't give you JNI-based POSIX functions, but I can give you
>> Java-based ones which might be a bit easier to maintain.  JNA
>> (http://jna.dev.java.net) might help you get the functionality you
>> need without having to deal with JNI headaches.
>
> Ah-ha...I knew something like this had to exist. It seems like this
> could be used to give us access to POSIX functions, as a sort of
> "J/Invoke" capability? I can also see another use for this: reusing
> Ruby's dll/so-based extensions until ports can be made...
>
> Very interesting...

JNA is very nice.  You can even use it directly from JRuby.
e.g.

require 'java'
Function = Java::com.sun.jna.Function
f = Function.new("gstreamer-0.10", "gst_version_string")
puts "gst_version_string = " + f.invokeString(java.lang.String[0].new,
false)


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

    http://xircles.codehaus.org/manage_email


Reply via email to