Yeah, attached is the single .java file. You'll need the aforementioned jna-related .jars in your Java project's library folder (<project root>/libs). Then clean and build and then compile with SimpleLibraryCompiler.
I reviewed the Stack Overflow literature on this topic as well a few blog posts. None of the code snippets I found worked but they did get me close to the working solution embodied in the attached.
Dearest Erel,
When trying to upload the .java file to this post, I got an error saying that that file extension was not allowed. This seems like a very strange policy for a forum based on products that rely so heavily on Java code. Is there some specific reason for this?