Error: Unsupported major.minor version 52.0

Discussion in 'Plugin Development' started by Torchowl, Feb 2, 2015.

Thread Status:
Not open for further replies.
  1. Offline

    Torchowl

    Hi Everyone,

    Recently I started developing plugins and when I put my plugin on my server it would not show up nor work.
    I've compiled the plugin with jre 6,7, and 8. Nothing worked. Can anyone help me solve this error?

    Error I'm Getting, Below


    Code:
    [18:01:49 ERROR]: Could not load 'plugins/EventHandle.jar' in folder 'plugins'
    org.bukkit.plugin.InvalidPluginException: java.lang.UnsupportedClassVersionError: me/penguin/EventHandle : Unsupported major.minor version 52.0
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:131) ~[craftbukkit-1.7.9.jar:git-Bukkit-1.7.2-R0.3-30-ge027d69-b3058jnks]
            at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:328) ~[craftbukkit-1.7.9.jar:git-Bukkit-1.7.2-R0.3-30-ge027d69-b3058jnks]
            at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:251) [craftbukkit-1.7.9.jar:git-Bukkit-1.7.2-R0.3-30-ge027d69-b3058jnks]
            at org.bukkit.craftbukkit.v1_7_R3.CraftServer.loadPlugins(CraftServer.java:357) [craftbukkit-1.7.9.jar:git-Bukkit-1.7.2-R0.3-30-ge027d69-b3058jnks]
            at org.bukkit.craftbukkit.v1_7_R3.CraftServer.<init>(CraftServer.java:319) [craftbukkit-1.7.9.jar:git-Bukkit-1.7.2-R0.3-30-ge027d69-b3058jnks]
            at net.minecraft.server.v1_7_R3.PlayerList.<init>(PlayerList.java:68) [craftbukkit-1.7.9.jar:git-Bukkit-1.7.2-R0.3-30-ge027d69-b3058jnks]
            at net.minecraft.server.v1_7_R3.DedicatedPlayerList.<init>(SourceFile:14) [craftbukkit-1.7.9.jar:git-Bukkit-1.7.2-R0.3-30-ge027d69-b3058jnks]
            at net.minecraft.server.v1_7_R3.DedicatedServer.init(DedicatedServer.java:126) [craftbukkit-1.7.9.jar:git-Bukkit-1.7.2-R0.3-30-ge027d69-b3058jnks]
            at net.minecraft.server.v1_7_R3.MinecraftServer.run(MinecraftServer.java:436) [craftbukkit-1.7.9.jar:git-Bukkit-1.7.2-R0.3-30-ge027d69-b3058jnks]
            at net.minecraft.server.v1_7_R3.ThreadServerApplication.run(SourceFile:628) [craftbukkit-1.7.9.jar:git-Bukkit-1.7.2-R0.3-30-ge027d69-b3058jnks]
    Caused by: java.lang.UnsupportedClassVersionError: me/penguin/EventHandle : Unsupported major.minor version 52.0
            at java.lang.ClassLoader.defineClass1(Native Method) ~[?:1.7.0_75]
            at java.lang.ClassLoader.defineClass(ClassLoader.java:800) ~[?:1.7.0_75]
            at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) ~[?:1.7.0_75]
            at java.net.URLClassLoader.defineClass(URLClassLoader.java:449) ~[?:1.7.0_75]
            at java.net.URLClassLoader.access$100(URLClassLoader.java:71) ~[?:1.7.0_75]
            at java.net.URLClassLoader$1.run(URLClassLoader.java:361) ~[?:1.7.0_75]
            at java.net.URLClassLoader$1.run(URLClassLoader.java:355) ~[?:1.7.0_75]
            at java.security.AccessController.doPrivileged(Native Method) ~[?:1.7.0_75]
            at java.net.URLClassLoader.findClass(URLClassLoader.java:354) ~[?:1.7.0_75]
            at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:77) ~[craftbukkit-1.7.9.jar:git-Bukkit-1.7.2-R0.3-30-ge027d69-b3058jnks]
            at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:62) ~[craftbukkit-1.7.9.jar:git-Bukkit-1.7.2-R0.3-30-ge027d69-b3058jnks]
            at java.lang.ClassLoader.loadClass(ClassLoader.java:425) ~[?:1.7.0_75]
            at java.lang.ClassLoader.loadClass(ClassLoader.java:358) ~[?:1.7.0_75]
            at java.lang.Class.forName0(Native Method) ~[?:1.7.0_75]
            at java.lang.Class.forName(Class.java:274) ~[?:1.7.0_75]
            at org.bukkit.plugin.java.PluginClassLoader.<init>(PluginClassLoader.java:40) ~[craftbukkit-1.7.9.jar:git-Bukkit-1.7.2-R0.3-30-ge027d69-b3058jnks]
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:127) ~[craftbukkit-1.7.9.jar:git-Bukkit-1.7.2-R0.3-30-ge027d69-b3058jnks]
     
  2. Offline

    timtower Administrator Administrator Moderator

    @Torchowl It means that you are compiling with java 8, tried deinstalling java 8 completely?
     
  3. Offline

    Torchowl

    Yes,

    Yes I have, my compiler on eclipse is set to 1.6. And I used 1.7 also.

    EDIT by Timtower: merged posts
     

    Attached Files:

    Last edited by a moderator: Feb 2, 2015
  4. Offline

    1Rogue

    Well that's silly advice. If you want to use a red crayon do you buy a new pack of crayons and throw the rest out?

    Setting your JRE won't make a difference, your JDK is what matters.

    Try unchecking "Use default compliance settings", and show the project-specific settings here.
     
    teej107 likes this.
Thread Status:
Not open for further replies.

Share This Page