2 messages in net.java.dev.jna.usersRe: [jna-users] Found interface JNA b...
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:Re: [jna-users] Found interface JNA but class expectedActions...
From:Timothy Wall (twal@dev.java.net)
Date:May 8, 2009 4:04:24 am
List:net.java.dev.jna.users

You'll have to check the Groovy docs, since that error is not generated by JNA. If your code hasn't changed then it's likely your Groovy setup. Classpath? java.library.path? PATH environment variable? VM version? Groovy version?

On May 7, 2009, at 4:28 PM, Duncan Sommerville wrote:

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.