java.lang.UnsupportedClassVersionError: logstash/runner : Unsupported major.minor version 51.0

JIRA | Alexander Fortin | 5 years ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to poroszd and rafael . Or join the community to write better ones.
  1. 0
    samebug tip
    Update "latest" to Java 8 on DockerHub.
    via Google Groups by Marcus Haebler
  2. 0
    samebug tip
    You're using an older version of java with classes compiled for java7
    via GitHub by Athou
  3. 0
    samebug tip
    From v1.2 and beyond, ElasticSearch doesn't support Java 6 anymore, consider upgrading to Java 7 or any newer version or getting an older version of ElasticSearch.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    I can't make latest monolithic jar to run even with a very simple config: $ uname -a Linux amitest1 3.0.0-26-virtual #43-Ubuntu SMP Tue Sep 25 17:57:16 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 11.10 Release: 11.10 Codename: oneiric $ java -version java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) $ wget -q http://semicomplete.com/files/logstash/logstash-1.1.2-monolithic.jar $ java -jar logstash-1.1.2-monolithic.jar agent -f conf -vv Exception in thread "main" java.lang.UnsupportedClassVersionError: logstash/runner : Unsupported major.minor version 51.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: logstash.runner. Program will exit. Conf file: input { stdin { type => 'test' } } output { stdout { debug => true } }

    JIRA | 5 years ago | Alexander Fortin
    java.lang.UnsupportedClassVersionError: logstash/runner : Unsupported major.minor version 51.0
  6. 0

    I can't make latest monolithic jar to run even with a very simple config: $ uname -a Linux amitest1 3.0.0-26-virtual #43-Ubuntu SMP Tue Sep 25 17:57:16 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 11.10 Release: 11.10 Codename: oneiric $ java -version java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) $ wget -q http://semicomplete.com/files/logstash/logstash-1.1.2-monolithic.jar $ java -jar logstash-1.1.2-monolithic.jar agent -f conf -vv Exception in thread "main" java.lang.UnsupportedClassVersionError: logstash/runner : Unsupported major.minor version 51.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: logstash.runner. Program will exit. Conf file: input { stdin { type => 'test' } } output { stdout { debug => true } }

    JIRA | 5 years ago | Alexander Fortin
    java.lang.UnsupportedClassVersionError: logstash/runner : Unsupported major.minor version 51.0

  1. Casper 2 times, last 1 month ago
  2. chenjunjun 1 times, last 4 months ago
  3. Mark 1 times, last 4 months ago
  4. harshg 4 times, last 7 months ago
  5. muffinmannen 1 times, last 10 months ago
2 more registered users
59 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.UnsupportedClassVersionError

    logstash/runner : Unsupported major.minor version 51.0

    at java.lang.ClassLoader.defineClass1()
  2. Java RT
    ClassLoader.loadClass
    1. java.lang.ClassLoader.defineClass1(Native Method)
    2. java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
    3. java.lang.ClassLoader.defineClass(ClassLoader.java:615)
    4. java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
    5. java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
    6. java.net.URLClassLoader.access$000(URLClassLoader.java:58)
    7. java.net.URLClassLoader$1.run(URLClassLoader.java:197)
    8. java.security.AccessController.doPrivileged(Native Method)
    9. java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    10. java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    11. sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    12. java.lang.ClassLoader.loadClass(ClassLoader.java:247)
    12 frames