I have a small test program which runs perfectly in the JBuilder 6 debugger. When I make a .jar file and run it I get an error
>java -jar testadll.jar
Start o
You've apparently merged JNA's classes with your own jar file, but omitted its native support. Ensure that all files from the original jna.jar
(not just class files) are copied to the new destination and that their original paths are preserved.
Specifically, your jar file must include com/sun/jna/win32-x86/jnidispatch.dll. If you want to include support for other platforms, you must include com/sun/jna/*/jnidispatch as well.