com.badlogic.gdx.utils.GdxRuntimeException

java.lang.UnsupportedClassVersionError: org/json/JSONException : Unsupported major.minor version 51.0

Samebug tips4

Update "latest" to Java 8 on DockerHub.

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.


rafaelrafael

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

Solutions on the web3359

  • via GitHub by kamalist
    ,
  • via Stack Overflow by Yandroide
    ,
  • Stack trace

    • com.badlogic.gdx.utils.GdxRuntimeException: java.lang.UnsupportedClassVersionError: org/json/JSONException : Unsupported major.minor version 51.0 at com.badlogic.gdx.backends.lwjgl.LwjglApplication$1.run(LwjglApplication.java:131) Caused by: java.lang.UnsupportedClassVersionError: org/json/JSONException : Unsupported major.minor version 51.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(Unknown Source) at java.security.SecureClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.access$000(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClassInternal(Unknown Source) at net.toyknight.aeii.manager.GameManager.<init>(GameManager.java:70) at net.toyknight.aeii.GameContext.initialize(GameContext.java:125) at net.toyknight.aeii.screen.LoadingScreen.render(LoadingScreen.java:49) at com.badlogic.gdx.Game.render(Game.java:46) at net.toyknight.aeii.GameContext.render(GameContext.java:422) at com.badlogic.gdx.backends.lwjgl.LwjglApplication.mainLoop(LwjglApplication.java:223) at com.badlogic.gdx.backends.lwjgl.LwjglApplication$1.run(LwjglApplication.java:124)

    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 visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    196 more bugmates