# Including local jar files

**URL:** <https://discuss.elastic.co/t/including-local-jar-files/34319>\
**Category:** Logstash\
**Created:** [November 11, 2015, 11:33am UTC](https://discuss.elastic.co/t/including-local-jar-files/34319 "2015-11-11T11:33:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Isra](https://avatars.discourse-cdn.com/v4/letter/i/7ba0ec/32.png) [@Isra](https://discuss.elastic.co/u/Isra)\
**Post date:** [November 11, 2015, 11:33am UTC](https://discuss.elastic.co/t/including-local-jar-files/34319/1 "2015-11-11T11:33:54Z")

</div>

I'm trying to build and use a gem that is dependent on jar files. I do not wanna publish the jar files, I need them locally only.

in my .gemspec file, I have the following

```
  # Jar dependencies
  s.requirements << "jar 'org.elasticsearch:elasticsearch', '1.4.0'"
  s.add_runtime_dependency 'jar-dependencies'

```

How can I include my local jar files? Because not including them gives me the following error, when trying to use the filter in a config file:

```
  The error reported is: Couldn't find any filter plugin named 'mygem'. 
  Are you sure this i s correct? Trying to load the mygem filter 
  plugin resulted in this e rror: no such file to load -- thejarfilename

```

Is this an issue with Logstash? Or should I just include the jar files in a specific way in the gemspec file?

---

<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, 5:23am UTC](https://discuss.elastic.co/t/including-local-jar-files/34319/2 "2017-07-06T05:23:12Z")

</div>


