Skip to content

RFE check native code version #399

@snazy

Description

@snazy

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions