Logstash 5.6.3 not working with Java 9

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

We do not currently support java 9 - https://www.elastic.co/support/matrix#matrix_jvm

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