GrayLog installation on linux Redhat 5.11


i’ve the following error while starting GrayLog 2.4 on redhat 5.11 ,could you please advise?

[dwh@DEVESBTRN01 ~]$ sudo service graylog-server start

Starting graylog-server: [ OK ]
[dwh@DEVESBTRN01 ~]$ Exception in thread “main” java.lang.UnsupportedClassVersionError: org/graylog2/bootstrap/Main : Unsupported major.minor version 52.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(
at java.lang.ClassLoader.defineClass(
at Method)
at java.lang.ClassLoader.loadClass(
at sun.misc.Launcher$AppClassLoader.loadClass(
at java.lang.ClassLoader.loadClass(
Could not find the main class: org.graylog2.bootstrap.Main. Program will exit.

it looks like your JAVA is not compatible with Graylog …

I don’t run Graylog on Redhat myself, but it looks like you are having java version issues.
The docs say use java-1.8.0-openjdk-headless.x86_64 for 2.4 and your version code is being returned as 52 - which is Java SE 8
To me that means you’re trying to run it on a lower version of Java. What do you see with java --version ?

You may need to specify an exact path in your $JAVA_HOME if this isn’t a standalone server.

Java -version output is:

dwh@DEVESBTRN01 ~]$ java -version

java version “1.8.0_60”

Java™ SE Runtime Environment (build 1.8.0_60-b27)

Java HotSpot™ 64-Bit Server VM (build 25.60-b23, mixed mode)

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