# Errors in Embedded elastic search server

**URL:** <https://discuss.elastic.co/t/errors-in-embedded-elastic-search-server/146368>\
**Category:** Elasticsearch\
**Created:** [August 28, 2018, 2:15pm UTC](https://discuss.elastic.co/t/errors-in-embedded-elastic-search-server/146368 "2018-08-28T14:15:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Selvakumar\_Ponnusamy](https://avatars.discourse-cdn.com/v4/letter/s/50afbb/32.png) [@Selvakumar\_Ponnusamy](https://discuss.elastic.co/u/Selvakumar_Ponnusamy)\
**Post date:** [August 28, 2018, 2:15pm UTC](https://discuss.elastic.co/t/errors-in-embedded-elastic-search-server/146368/1 "2018-08-28T14:15:19Z")

</div>

Im trying to run embedded elastic servers for Junit test cases. So I just extended a class ESIntegTestCase. But its not allowing me to run the test case. I use elastic search 6.0.0.

My class:

```
import org.elasticsearch.test.ESIntegTestCase;
import org.junit.Test;

public class AbstractElasticsearchTest extends ESIntegTestCase {

    @Test
    public void test() {
        org.elasticsearch.test.ESTestCase d;
        System.out.println("hello");
    }
}

```

Error:

```
[2018-08-28T19:41:21,230][WARN][o.e.b.JNANatives] Unable to lock JVM Memory: error=78,reason=Function not implemented
[2018-08-28T19:41:21,234][WARN][o.e.b.JNANatives] This can result in part of the JVM being swapped out. Exception in thread "Thread-1" java.lang.NoClassDefFoundError: Could not initialize class org.elasticsearch.test.ESTestCase

```

Please help me to resolve it

---

<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:** [September 25, 2018, 2:15pm UTC](https://discuss.elastic.co/t/errors-in-embedded-elastic-search-server/146368/2 "2018-09-25T14:15:29Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
