# Logstash 5.6.3 not working with Java 9

**URL:** <https://discuss.elastic.co/t/logstash-5-6-3-not-working-with-java-9/105830>\
**Category:** Logstash\
**Created:** [October 31, 2017, 3:12am UTC](https://discuss.elastic.co/t/logstash-5-6-3-not-working-with-java-9/105830 "2017-10-31T03:12:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Seyf\_Souissi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/seyf_souissi/32/23586_2.png) [@Seyf\_Souissi](https://discuss.elastic.co/u/Seyf_Souissi)\
**Post date:** [October 31, 2017, 3:12am UTC](https://discuss.elastic.co/t/logstash-5-6-3-not-working-with-java-9/105830/1 "2017-10-31T03:12:10Z")

</div>

Hi, I'm new to elastic and was trying to get Logstash working on Ubuntu. The JDK installed successfully, elastic and KIbana are working correctly.  
java -version  
java version "9.0.1"  
Java(TM) SE Runtime Environment (build 9.0.1+11)  
Java HotSpot(TM) 64-Bit Server VM (build 9.0.1+11, mixed mode)

However when I try running the bin/logstash -e 'input { stdin { } } output { stdout {} }'" as instructed to do so in the "getting started" documentation I get the following error message:

Java HotSpot(TM) 64-Bit Server VM warning: Option UseParNewGC was deprecated in version 9.0 and will likely be removed in a future release.  
Java HotSpot(TM) 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.  
WARNING: An illegal reflective access operation has occurred  
WARNING: Illegal reflective access by jnr.posix.JavaLibCHelper to method sun.nio.ch.SelChImpl.getFD()  
WARNING: Please consider reporting this to the maintainers of jnr.posix.JavaLibCHelper  
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations  
WARNING: All illegal access operations will be denied in a future release  
io/console on JRuby shells out to stty for most operations  
NameError: cannot link Java class org.logstash.common.DeadLetterQueueFactory (java.lang.NoClassDefFoundError: javax/script/ScriptEngineFactory)  
get\_proxy\_or\_package\_under\_package at org/jruby/javasupport/JavaUtilities.java:54  
method\_missing at file:/home/seif/Documents/logstash/vendor/jruby/lib/jruby.jar!/jruby/java/java\_package\_module\_template.rb:14  
DeadLetterQueueFactory at /home/seif/Documents/logstash/logstash-core/lib/logstash/util/dead\_letter\_queue\_manager.rb:46  
Util at /home/seif/Documents/logstash/logstash-core/lib/logstash/util/dead\_letter\_queue\_manager.rb:45  
LogStash at /home/seif/Documents/logstash/logstash-core/lib/logstash/util/dead\_letter\_queue\_manager.rb:3  
(root) at /home/seif/Documents/logstash/logstash-core/lib/logstash/util/dead\_letter\_queue\_manager.rb:3  
require at org/jruby/RubyKernel.java:1040  
require at /home/seif/Documents/logstash/vendor/bundle/jruby/1.9/gems/polyglot-0.3.5/lib/polyglot.rb:65  
(root) at /home/seif/Documents/logstash/logstash-core/lib/logstash/plugin.rb:1  
require at org/jruby/RubyKernel.java:1040  
(root) at /home/seif/Documents/logstash/logstash-core/lib/logstash/plugin.rb:6  
(root) at /home/seif/Documents/logstash/vendor/bundle/jruby/1.9/gems/polyglot-0.3.5/lib/polyglot.rb:1  
require at org/jruby/RubyKernel.java:1040  
require at /home/seif/Documents/logstash/vendor/bundle/jruby/1.9/gems/polyglot-0.3.5/lib/polyglot.rb:65  
(root) at /home/seif/Documents/logstash/logstash-core/lib/logstash/filters/base.rb:5  
require at org/jruby/RubyKernel.java:1040  
(root) at /home/seif/Documents/logstash/vendor/bundle/jruby/1.9/gems/polyglot-0.3.5/lib/polyglot.rb:1  
require at org/jruby/RubyKernel.java:1040  
require at /home/seif/Documents/logstash/vendor/bundle/jruby/1.9/gems/polyglot-0.3.5/lib/polyglot.rb:65  
require at org/jruby/RubyKernel.java:1040  
(root) at /home/seif/Documents/logstash/lib/bootstrap/environment.rb:70

Thanks!  
SS

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [October 31, 2017, 3:13am UTC](https://discuss.elastic.co/t/logstash-5-6-3-not-working-with-java-9/105830/2 "2017-10-31T03:13:01Z")

</div>

We do not currently support java 9 - [https://www.elastic.co/support/matrix#matrix\_jvm](https://www.elastic.co/support/matrix#matrix_jvm)

---

<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 28, 2017, 3:13am UTC](https://discuss.elastic.co/t/logstash-5-6-3-not-working-with-java-9/105830/3 "2017-11-28T03:13:07Z")

</div>

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