# Import Jedis lib in native script

**URL:** <https://discuss.elastic.co/t/import-jedis-lib-in-native-script/40928>\
**Category:** Elasticsearch\
**Created:** [February 4, 2016, 6:22am UTC](https://discuss.elastic.co/t/import-jedis-lib-in-native-script/40928 "2016-02-04T06:22:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![hahander](https://avatars.discourse-cdn.com/v4/letter/h/b487fb/32.png) [@hahander](https://discuss.elastic.co/u/hahander)\
**Post date:** [February 4, 2016, 6:22am UTC](https://discuss.elastic.co/t/import-jedis-lib-in-native-script/40928/1 "2016-02-04T06:22:06Z")

</div>

Hi there. Sorry if i'm type in wrong topic.  
Is there any way to include any external libs to elasticsearch? I have this lib(jar file) and simple native script. I wonna get access to this external classes from my native script, but i can't find a way how to import it correctly.(I'm a beginner in Java).

If anyone have worked example of it import it will be nice, or any explanations how to do this. Thanks.

P.S.  
Sorry for my English =)

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [February 4, 2016, 6:35am UTC](https://discuss.elastic.co/t/import-jedis-lib-in-native-script/40928/2 "2016-02-04T06:35:53Z")

</div>

Your script is added as a plugin, right?

If so you just need to add other jars with your script.

In the same zip file / same dir.

---

<div class="post-metadata">

**Author:** ![hahander](https://avatars.discourse-cdn.com/v4/letter/h/b487fb/32.png) [@hahander](https://discuss.elastic.co/u/hahander)\
**Post date:** [February 4, 2016, 7:09am UTC](https://discuss.elastic.co/t/import-jedis-lib-in-native-script/40928/3 "2016-02-04T07:09:51Z")

</div>

I just need to add jar to my existing sript.

---

<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 5, 2017, 11:19pm UTC](https://discuss.elastic.co/t/import-jedis-lib-in-native-script/40928/4 "2017-07-05T23:19:03Z")

</div>

Closed on July 5, 2017, 11:19pm UTC


