# What version of JRuby should plugins be built with?

**URL:** <https://discuss.elastic.co/t/what-version-of-jruby-should-plugins-be-built-with/129731>\
**Category:** Logstash\
**Created:** [April 26, 2018, 6:02pm UTC](https://discuss.elastic.co/t/what-version-of-jruby-should-plugins-be-built-with/129731 "2018-04-26T18:02:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![wakinov](https://avatars.discourse-cdn.com/v4/letter/w/49beb7/32.png) [@wakinov](https://discuss.elastic.co/u/wakinov)\
**Post date:** [April 26, 2018, 6:02pm UTC](https://discuss.elastic.co/t/what-version-of-jruby-should-plugins-be-built-with/129731/1 "2018-04-26T18:02:21Z")

</div>

I see a lot of mentions of "1.9" but that doesn't seem to be a real version.

---

<div class="post-metadata">

**Author:** ![yaauie](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yaauie/32/23363_2.png) [@yaauie](https://discuss.elastic.co/u/yaauie)\
**Post date:** [April 26, 2018, 6:09pm UTC](https://discuss.elastic.co/t/what-version-of-jruby-should-plugins-be-built-with/129731/2 "2018-04-26T18:09:53Z")

</div>

Since the plugins will be run by Logstash core, matching the [Logstash Core Prerequisites](https://github.com/elastic/logstash#prerequisites) is going to be your best bet:

> ### Prerequisites
> 
> - Install JDK version 8. Make sure to set the `JAVA_HOME` environment variable to the path to your JDK installation directory. For example `set JAVA_HOME=<JDK_PATH>`
> - Install JRuby 9.1.x It is recommended to use a Ruby version manager such as [RVM](https://rvm.io/) or [rbenv](https://github.com/sstephenson/rbenv).

---

<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:** [May 24, 2018, 6:10pm UTC](https://discuss.elastic.co/t/what-version-of-jruby-should-plugins-be-built-with/129731/3 "2018-05-24T18:10:01Z")

</div>

Closed on May 24, 2018, 6:10pm UTC

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