Today we've experienced a "strange" java.lang.NoClassDefFoundError: Could not initialize class com.sun.jna.Native failure.
The root cause (on some machines) was just that we use JNA 4.0.0 but someone installed the Debian package libjna-java (which is at 3.2.x). So the native methods could not be looked up.
Please add some version marker to the native code that can be checked by Native to ensure that versions between Java and native code matches.
(I don't know why there's a libjna-java or libjna-jni package since jna.jar has everything in it)
Today we've experienced a "strange"
java.lang.NoClassDefFoundError: Could not initialize class com.sun.jna.Nativefailure.The root cause (on some machines) was just that we use JNA 4.0.0 but someone installed the Debian package libjna-java (which is at 3.2.x). So the native methods could not be looked up.
Please add some version marker to the native code that can be checked by
Nativeto ensure that versions between Java and native code matches.(I don't know why there's a libjna-java or libjna-jni package since jna.jar has everything in it)