5 messages in net.java.dev.jna.usersJNA: java.lang.UnsatisfiedLinkError: ...
FromSent OnAttachments
SriOct 16, 2007 11:44 am 
Timothy WallOct 16, 2007 11:58 am 
Albert StrasheimOct 16, 2007 1:09 pm 
Glick, Gene (GE Indust, Security)Oct 16, 2007 1:31 pm 
SriOct 16, 2007 3:07 pm 
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: java.lang.UnsatisfiedLinkError: Cannot locate function 'GetTimings'Actions...
From:Sri (wayt@gmail.com)
Date:Oct 16, 2007 11:44:43 am
List:net.java.dev.jna.users

Hi,

I am using JNA, for the first time, to access native code in .dll file. I am getting the following error.

Exception in thread "main" java.lang.UnsatisfiedLinkError: Cannot locate function 'GetTimings' at com.sun.jna.NativeLibrary.getFunctionAddress(NativeLibrary.java:212) at com.sun.jna.Function.<init>(Function.java:141) at com.sun.jna.NativeLibrary.getFunction(NativeLibrary.java:199) at com.sun.jna.Library$Handler.invoke(Library.java:155) at $Proxy0.ScoreTimings(Unknown Source) at com.kryterion.wa.biometrics.keystrokes.JnaTest.main(JnaTest.java:40)

I am quite sure about the function name being 'GetTimings' coz I used StdCallFunctionMapper of JNA to get the native method name. The .dll is getting loaded fine, but it complains about function not being in the .dll .

native method signature:

------------------------ public int GetTimings(string timings, byte[] intem, out int outTemp);

method signature in my interface which extends Library com.sun.jna.Library

-------------------------------------------------------------------------- public int GetTimings(String timings, byte[] intem, int outTemp);

Any help would be appreciated.