java.lang.UnsupportedClassVersionError: Bad version number in .class file

incubator-uima-user | Eric Riebling | 8 years ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to Rafael Fischer Viola and rafael . Or join the community to write better ones.
  1. 0

    Re: UIMA repsotory

    uima-user | 8 years ago | Eric Riebling
    java.lang.UnsupportedClassVersionError: Bad version number in .class file
  2. 0

    Re: UIMA repsotory

    incubator-uima-user | 8 years ago | Eric Riebling
    java.lang.UnsupportedClassVersionError: Bad version number in .class file
  3. 0
    samebug tip
    This might be caused by and outdated version of Java, SonarQube now uses Java 8 as default. You might upgrade java or use an older version of SonarQube.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    samebug tip
    If you're using intellij plugin of sonarqube, you might have to set the JAVA_HOME ambient variable manually.
  6. 0

    JBoss deployment results in java.lang.UnsupportedClassVersionError: Bad version number in .class file

    Stack Overflow | 5 years ago | vibhas
    java.lang.ClassNotFoundException: Unexpected error during load of: device.common.log4j.jmx.JMSAppenderInitializer, msg=Bad version number in .class file)
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

    Bad version number in .class file

    at java.lang.ClassLoader.defineClass1()
  2. Java RT
    URLClassLoader.findClass
    1. java.lang.ClassLoader.defineClass1(Native Method)
    2. java.lang.ClassLoader.defineClass(ClassLoader.java:620)
    3. java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
    4. java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
    5. java.net.URLClassLoader.access$100(URLClassLoader.java:56)
    6. java.net.URLClassLoader$1.run(URLClassLoader.java:195)
    7. java.security.AccessController.doPrivileged(Native Method)
    8. java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    8 frames
  3. Apache UIMA Base: ${project.artifactId}
    UIMAClassLoader.loadClass
    1. org.apache.uima.internal.util.UIMAClassLoader.loadClass(UIMAClassLoader.java:147)
    1 frame
  4. Java RT
    ClassLoader.loadClass
    1. java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    1 frame
  5. Apache UIMA Base: ${project.artifactId}
    InstallationController.verifyComponent
    1. org.apache.uima.analysis_engine.impl.PrimitiveAnalysisEngine_impl.initializeAnalysisComponent(PrimitiveAnalysisEngine_impl.java:202)
    2. org.apache.uima.analysis_engine.impl.PrimitiveAnalysisEngine_impl.initialize(PrimitiveAnalysisEngine_impl.java:157)
    3. org.apache.uima.impl.AnalysisEngineFactory_impl.produceResource(AnalysisEngineFactory_impl.java:94)
    4. org.apache.uima.impl.CompositeResourceFactory_impl.produceResource(CompositeResourceFactory_impl.java:62)
    5. org.apache.uima.UIMAFramework.produceResource(UIMAFramework.java:258)
    6. org.apache.uima.UIMAFramework.produceResource(UIMAFramework.java:303)
    7. org.apache.uima.UIMAFramework.produceAnalysisEngine(UIMAFramework.java:383)
    8. org.apache.uima.pear.tools.InstallationTester.testAnalysisEngine(InstallationTester.java:219)
    9. org.apache.uima.pear.tools.InstallationTester.doTest(InstallationTester.java:114)
    10. org.apache.uima.pear.tools.InstallationController.verifyComponentInstallation(InstallationController.java:1110)
    11. org.apache.uima.pear.tools.InstallationController.verifyComponent(InstallationController.java:1993)
    11 frames
  6. org.apache.uima
    InstallPear$RunInstallation.run
    1. org.apache.uima.tools.pear.install.InstallPear.installPear(InstallPear.java:388)
    2. org.apache.uima.tools.pear.install.InstallPear.access$000(InstallPear.java:79)
    3. org.apache.uima.tools.pear.install.InstallPear$RunInstallation.run(InstallPear.java:108)
    3 frames
  7. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:595)
    1 frame