Getting started help with unsatisfied link error

94 views
Skip to first unread message

Tom Johnson

unread,
Aug 5, 2011, 11:38:20 AM8/5/11
to Java Native Access
I am getting:

java.lang.UnsatisfiedLinkError: jnidispatch (/com/sun/jna/win32-x86/
jnidispatch.dll) not found in resource path
at com.sun.jna.Native.loadNativeLibraryFromJar(Native.java:
722)
at com.sun.jna.Native.loadNativeLibrary(Native.java:699)
at com.sun.jna.Native.<clinit>(Native.java:114)
at com.sun.jna.platform.win32.User32.<clinit>(User32.java:52)
at
hteprocessswitcher.ProcessSwitcher.main(ProcessSwitcher.java:22)

I am using NetBeans 6.9.1 and have added jna.jar, platform.jar and
win32-x86.jar as libraries to my project from the jnalib\dist
folder. Any ideas?

Tom Johnson

unread,
Aug 5, 2011, 11:47:57 AM8/5/11
to Java Native Access
Correction, I removed the win32-x86.jar from the library list as it
appears the DLL is in the jna.jar. However, I still get the same
error.
Reply all
Reply to author
Forward
0 new messages