Skip to content

JNA error when installing elasticsearch 7.10.1 on RHEL8 #44

Description

@rinaldou

After running the script, and looking at the logs, there was a message
"unable to load JNA native support library, native methods will be disabled.
java.lang.UnsatisfiedLinkError: Native library (com/sun/jna/linux-s390x/libjnidispatch.so)"
Though it started, I looked into the problem.
in the lib folder, there is the filel 'jna-5.5.0.jar'.
Inside it, there wasn't a folder com/sun/jna/linux-s390x.
So I went to the page https://github.com/java-native-access/jna/blob/master/lib/native/linux-s390x.jar and downloaded the linux-s390x.jar.
Opening the file, you can find the file you want. Create a folder with name linux-s390x and the libjnidispatch.so file inside the jar.
Replace the old jna-5.5.0.jar for the one you created.
After that, I run the elasticsearch without any warnings.
Hope it helps someone.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions