GrayLog installation on linux Redhat 5.11

Hi,

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(ClassLoader.java:631)
at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
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.

Hi,
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.