linux-on-ibm-z / docs

A collection of instructions and tutorials to help you get your favorite software up and running on Linux on z
147 stars 58 forks source link

JNA error when installing elasticsearch 7.10.1 on RHEL8 #44

Open rinaldou opened 3 years ago

rinaldou commented 3 years ago

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.

cwsolee commented 3 years ago

Thanks for the comment and suggestion, we'll update our instruction & script in our next publish.

bellatrix1001 commented 2 years ago

Life-saving. Thanks for posting!