DLL with JNA error looking up function?

Posted by Thomas Nappo on Stack Overflow See other posts from Stack Overflow or by Thomas Nappo
Published on 2012-11-09T22:57:31Z Indexed on 2012/11/09 22:59 UTC
Read the original article Hit count: 300

Filed under:
|
|
|

This is the code in my DLL (C#): http://pastebin.com/Uirn0z2V

I have the DLL built and inside both the JDK bin folder along with inside my project.

This is the Java code I am using to access with JNA: http://pastebin.com/NffpaEp8

Yet when I run my Java code this happens:

Exception in thread "main" java.lang.UnsatisfiedLinkError: Error looking up function 'Run': The specified procedure could not be found.
    at com.sun.jna.Function.<init>(Function.java:179)
    at com.sun.jna.NativeLibrary.getFunction(NativeLibrary.java:391)
    at com.sun.jna.NativeLibrary.getFunction(NativeLibrary.java:371)
    at com.sun.jna.Library$Handler.invoke(Library.java:205)
    at $Proxy0.Run(Unknown Source)
    at RunPETest.main(RunPETest.java:18)

I have no experience with using JNA with custom DLLs or creating DLLs with C#... so I'm stuck here.

© Stack Overflow or respective owner

Related posts about c#

Related posts about java