# Logstash-5.6.2 jruby error

**URL:** <https://discuss.elastic.co/t/logstash-5-6-2-jruby-error/102786>\
**Category:** Logstash\
**Created:** [October 5, 2017, 5:07am UTC](https://discuss.elastic.co/t/logstash-5-6-2-jruby-error/102786 "2017-10-05T05:07:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sidra\_89](https://avatars.discourse-cdn.com/v4/letter/s/3d9bf3/32.png) [@sidra\_89](https://discuss.elastic.co/u/sidra_89)\
**Post date:** [October 5, 2017, 5:07am UTC](https://discuss.elastic.co/t/logstash-5-6-2-jruby-error/102786/1 "2017-10-05T05:07:06Z")

</div>

not able to run logstash keep on getting jrudy error the below image show the details

using windows 10 and java 9

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/6/e/6ed10afd3d388d20a2cec7aba28fe71bca7fe165.jpg)

---

<div class="post-metadata">

**Author:** ![guyboertje](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/guyboertje/32/31592_2.png) [@guyboertje](https://discuss.elastic.co/u/guyboertje)\
**Post date:** [October 5, 2017, 6:38am UTC](https://discuss.elastic.co/t/logstash-5-6-2-jruby-error/102786/2 "2017-10-05T06:38:23Z")

</div>

Logstash uses Jruby  
Logstash 5.x uses versions 1.7.2x of jruby  
JRuby 1.7.X is not compatible with Java 9.  
JRuby 9.2 is the target version for Java 9 compatibility:

> <https://github.com/jruby/jruby/issues/4111>

  
Logstash 6.0.0 (in RC phase) uses JRuby 9.1.13.0

Logstash will run on Java 9 in the future.

Now, you must use Java 8.

---

<div class="post-metadata">

**Author:** ![sidra\_89](https://avatars.discourse-cdn.com/v4/letter/s/3d9bf3/32.png) [@sidra\_89](https://discuss.elastic.co/u/sidra_89)\
**Post date:** [October 5, 2017, 9:53am UTC](https://discuss.elastic.co/t/logstash-5-6-2-jruby-error/102786/3 "2017-10-05T09:53:27Z")

</div>

okay .. will be using java 8 then ..

Thank you

---

<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:** [November 2, 2017, 10:04am UTC](https://discuss.elastic.co/t/logstash-5-6-2-jruby-error/102786/4 "2017-11-02T10:04:32Z")

</div>

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