# Problem with JNA

**URL:** https://discuss.elastic.co/t/problem-with-jna/2566
**Category:** Elasticsearch
**Created:** [June 12, 2015, 11:35am UTC](https://discuss.elastic.co/t/problem-with-jna/2566 "2015-06-12T11:35:04Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Nukles](https://avatars.discourse-cdn.com/v4/letter/n/47e85d/32.png) [@Nukles](https://discuss.elastic.co/u/Nukles)
#### Post date: [June 12, 2015, 11:35am UTC](https://discuss.elastic.co/t/problem-with-jna/2566/1 "2015-06-12T11:35:04Z")

</div>

Hi all,

I've recently built elastic on a Ubuntu machine on ppc64 (IBM POWER Platform). The built went well, however, I always get this error when I start the elastic binary:

[2015-06-12 11:38:06,156][WARN][bootstrap] unable to load JNA native support library, native methods will be disabled.  
java.lang.UnsatisfiedLinkError: Native library (com/sun/jna/linux-ppc64/libjnidispatch.so) not found in resource path

Then starts a list of several folders where it looked for this file...

To solve it I installed **libjna-java** , and now I do have this file **libjnidispatch.so** in the system under /usr/lib/jni/, however also after updating the PATH variable, I still get the error, even after re-building.

So to "trick" the system I first created a symlink inside the folder **bin** , where elastic is looking for the file:

**ln -s /usr/bin/jni/libjnidispatch.so /root/elastic/core/target/releases/elasticsearch-2.0.0-SNAPSHOT/bin/com/sun/jna/linux-ppc64/libjnidispatch.so**

which I know it looks awful, but it was just a try. After invoking elasticsearch, I got another error message:

**[2015-06-12 12:19:56,701][WARN][bootstrap] unable to load JNA native support library, native methods will be disabled.**  
**java.lang.UnsatisfiedLinkError: Can't obtain updateLastError method for class com.sun.jna.Native**

Even by copying the **libjnidispatch.so** file and making it executable, I still get the same error.

Why is that so? How can I make elastic recognise that I do have this library?

Thanks.

---

<div class="post-metadata">

### Author: ![rmuir](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rmuir/32/44949_2.png) [@rmuir](https://discuss.elastic.co/u/rmuir)
#### Post date: [June 12, 2015, 5:34pm UTC](https://discuss.elastic.co/t/problem-with-jna/2566/2 "2015-06-12T17:34:45Z")

</div>

You have "dll hell" if you try to use an older JNA .so, from a different version than the one ES is using (4.1.0). Thats why you see "Can't obtain updateLastError...".

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [July 6, 2017, 12:07am UTC](https://discuss.elastic.co/t/problem-with-jna/2566/3 "2017-07-06T00:07:48Z")

</div>


