org.bukkit.plugin.InvalidPluginException

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.

tip

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

tip

Update "latest" to Java 8 on DockerHub.

tip

You're using an older version of java with classes compiled for java7

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

  • GitHub comment 115#240699160
    via GitHub by Ben12345rocks
    ,
  • could not load mccore
    via GitHub by dpl15769
    ,
  • java.lang.UnsupportedClassVersionError | Bukkit Forums
    via by Unknown author,
  • Error
    via GitHub by ProAngelGR
    ,
    • org.bukkit.plugin.InvalidPluginException: java.lang.UnsupportedClassVersionError: com/Ben12345rocks/VotingPlugin/Main : Unsupported major.minor version 52.0 at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:135)[spigot.jar:git-Spigot-e0e1771-5e5cf84] at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:329)[spigot.jar:git-Spigot-e0e1771-5e5cf84] at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:251)[spigot.jar:git-Spigot-e0e1771-5e5cf84] at org.bukkit.craftbukkit.v1_10_R1.CraftServer.loadPlugins(CraftServer.java:297)[spigot.jar:git-Spigot-e0e1771-5e5cf84] at net.minecraft.server.v1_10_R1.DedicatedServer.init(DedicatedServer.java:203)[spigot.jar:git-Spigot-e0e1771-5e5cf84] at net.minecraft.server.v1_10_R1.MinecraftServer.run(MinecraftServer.java:535)[spigot.jar:git-Spigot-e0e1771-5e5cf84] at java.lang.Thread.run(Thread.java:745)[?:1.7.0_101] Caused by: java.lang.UnsupportedClassVersionError: com/Ben12345rocks/VotingPlugin/Main : Unsupported major.minor version 52.0 at java.lang.ClassLoader.defineClass1(Native Method)[?:1.7.0_101] at java.lang.ClassLoader.defineClass(ClassLoader.java:803)[?:1.7.0_101] at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)[?:1.7.0_101] at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)[?:1.7.0_101] at java.net.URLClassLoader.access$100(URLClassLoader.java:71)[?:1.7.0_101] at java.net.URLClassLoader$1.run(URLClassLoader.java:361)[?:1.7.0_101] at java.net.URLClassLoader$1.run(URLClassLoader.java:355)[?:1.7.0_101] at java.security.AccessController.doPrivileged(Native Method)[?:1.7.0_101] at java.net.URLClassLoader.findClass(URLClassLoader.java:354)[?:1.7.0_101] at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:101)[spigot.jar:git-Spigot-e0e1771-5e5cf84] at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:86)[spigot.jar:git-Spigot-e0e1771-5e5cf84] at java.lang.ClassLoader.loadClass(ClassLoader.java:425)[?:1.7.0_101] at java.lang.ClassLoader.loadClass(ClassLoader.java:358)[?:1.7.0_101] at java.lang.Class.forName0(Native Method)[?:1.7.0_101] at java.lang.Class.forName(Class.java:278)[?:1.7.0_101] at org.bukkit.plugin.java.PluginClassLoader.<init>(PluginClassLoader.java:64)[spigot.jar:git-Spigot-e0e1771-5e5cf84] at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:131)

    Users with the same issue

    Unknown visitor1 times, last one,
    andyglick
    6 times, last one,
    rafael
    2 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    192 more bugmates