java.lang.UnsupportedClassVersionError

Bad version number in .class file

Samebug tips4

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.

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

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web4780

  • via Coderanch by Dave Alvarado, 7 months ago
    Bad version number in .class file
  • via Coderanch by Rajeev Ravindran, 11 months ago
    Bad version number in .class file
  • via Coderanch by Oczek Oczkowy, 9 months ago
    Bad version number in .class file
  • Stack trace

    • java.lang.UnsupportedClassVersionError: Bad version number in .class file at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(Unknown Source)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown user
    Once, 11 months ago
    Unknown user
    Once, 11 months ago
    Unknown user
    Once, 11 months ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    194 more bugmates