On Sep 3, 2008, at 4:52 PM, Alan Snyder wrote:
Make sure you don't have multiple copies of JNA classes in your
classpath.
I don't see multiple copies of these classes. The error happens both
when running from the command-line just the same as in the debugger.
(Although the debugger does have both the source and jar file. The
jar file is needed for "libjnidispatch.so" does OSX pull that file
from the package "com.sun.jna.freebsd-i386" or "com.sun.jna.linux-
i386"? I don't see a package for the mac.
OSX has a universal binary called libjnidispatch.jnilib, which gets
extracted to a temporary file before being loaded. If you put it on
DYLD_LIBRARY_PATH it'll get loaded from there instead.
Do you have multiple class loaders?
Only see one application class loader in the IDE.
What happens when you do "x instanceof Callback" explicitly on your
new callback instance?
"x instanceof Callback" is false while at the same time:
"x instnaceof EventHandlerProcPtr" is true.
Callback.class.isAssignableFrom(EventHandlerProcPtr.class)?