The code may not be entirely accurate; I copied it from a sample
Wayne Meissner had posted.
Could you be a little more specific about the issues you ran into?
Note that you'll need to build JNA from source until I get the next
release snapshot posted (updating files on dev.java.net is a pain).
Begin forwarded message:
From: "Mike McKinney" <mike...@gmail.com>
Date: May 31, 2007 1:53:52 AM EDT
To: twal...@dev.java.net
Subject: JNA in JRUBY
Hey there, I'm running into issues with JNA in Jruby and wanted to
see if it's something I'm doing wrong.
(ref: http://jira.codehaus.org/browse/JRUBY-1039 )
I downloaded the latest bin dist for Jruby (1.0.0RC2) (usually
build it, but wanted a fresh perspective)
I tried the sample Jruby code you have for JNA, downloaded the
jna.jar file and put it in the JRUBY_HOME/lib dir... couldn't get
things to run and was wondering if there is a trick to this?
I copied your sample code into a file called jna_test.rb and ran:
no dice... any help is appreciated as I'm planning on using this
combo for an upcoming project.