Error starting logstash 6.2.2


(Prakash) #1

Dear All

I have installed logstash-6.2.2 and when trying to start the service with systemctl i get the below errors. Please advice

NameError: cannot link Java class org.apache.logging.log4j.Level needs Java 7 (java.lang.UnsupportedClassVersionError: org/apache/logging/log4j/Level
get_proxy_or_package_under_package at org/jruby/javasupport poxy_or_package_under_package at org/jruby/javasupport/JavaUtilities.java:54
method_missing at file:/usr/share/logstash/vendor/jruby/lib/jruby.jar!/jruby/java/java_package_module_template.rb:14

My Env


Linux 3.10.0-514.16.1.el7.x86_64 #1 SMP Fri Mar 10 13:12:32 EST 2017 x86_64 x86_64 x86_64 GNU/Linux

java version "1.8.0_161"
Java(TM) SE Runtime Environment (build 1.8.0_161-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.161-b12, mixed mode)



(Walker) #2

Looks like you need a newer version of Java/Java JDK, not JRE.


(Prakash) #3

Thanks a lot Walker, i installed JDK and it started working.


(system) #4

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