2 messages in net.java.dev.jna.users[jna-users] Found interface JNA but c...
FromSent OnAttachments
Duncan SommervilleMay 7, 2009 1:28 pm 
Timothy WallMay 8, 2009 4:04 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[jna-users] Found interface JNA but class expectedActions...
From:Duncan Sommerville (dunc@yahoo.com)
Date:May 7, 2009 1:28:24 pm
List:net.java.dev.jna.users

We have been using the JNA library (within Groovy) to interface with an underlying DLL that was written in C - so far it has worked fine, but we're now getting "Found interface ... JNA but class was expected" errors while trying to run our application on a new computer.

Our JNA interface looks something like this:

import com.sun.jna.Native

import com.sun.jna.Library

interface JNA extends Library {

def mylib = Native.synchronizedLibrary(Native.loadLibrary("mydll", JNA.class))

...

}

I suspect that this is an environment issue, rather than a coding problem, but can anyone suggest where we're going wrong, as we're stumped...

Many thanks.