I am trying to run logstash 6.5 on linux where I don't have roots right. By default there is Java 1.6 but I have jdk with Java 1.8 which I can run application from
I have changed the startup.options following discussion.
JAVACMD=/home/jdk1.8.0_161_x64/bin/java
I also have changed bin/setup.bat following another discussion and have set JAVA_HOME in logstash.bat
I still can't run logstash, having this error:
$ ./bin/logstash -e 'input { stdin { } } output { stdout { } }'
Exception in thread "main" java.lang.UnsupportedClassVersionError: org/logstash/Logstash :
Unsupported major.minor version 52.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:637)
at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
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.logstash.Logstash. Program will exit.
I assume the error is about Java version but not sure anymore.
Can someone give clear instruction how to get it working?
Thanks