Unsupported major.minor version 51.0

Discussion in 'Bukkit Help' started by globox99, Mar 31, 2012.

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

    globox99

    Hi, I have a problem with the plugin LifeMc. In the console, pop up this error
    Unsupported major.minor version 51.0
    I have a server for hosting, which is Java 7
    Plugin is compiled to Java 7

    Please Help
     
  2. Offline

    Obliviator

  3. Offline

    globox99

    Console Error

    Code:
    [SEVERE] Could not load 'plugins/LifeMC.jar' in folder 'plugins'
    org.bukkit.plugin.InvalidPluginException: java.lang.UnsupportedClassVersionError: me/bluemond/lifemc/LifeMC : Unsupported major.minor version 51.0
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:150)
        at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:305)
        at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:230)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:207)
        at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:183)
        at net.minecraft.server.ServerConfigurationManager.<init>(ServerConfigurationManager.java:53)
        at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:156)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:425)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:490)
    Caused by: java.lang.UnsupportedClassVersionError: me/bluemond/lifemc/LifeMC : Unsupported major.minor version 51.0
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
        at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:41)
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:29)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:247)
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:139)
        ... 8 more 
     
  4. Offline

    Obliviator

    Which bukkit version are you using?
     
  5. Offline

    globox99

    Recommended Bukkit 1.2.4 #2126
     
  6. Offline

    greatman

    Your trying to run a plugin that is compiled for a higher version of Java than the one you are running (Example running Java 7 code on Java 6)
     
  7. Offline

    globox99

    Plugin is compiled to Java 7
    I also have Java 7

    @ Ref Help Please

    Ref

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 24, 2016
  8. Offline

    globox99

    Ref

    Ref PLEEAASSEEE

    ... help PLEASE

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 24, 2016
  9. Offline

    globox99

    @ Ref... Please Help Me
     
  10. Offline

    Acrobot

    We told you. You are NOT launching your Minecraft server with 1.7 version of Java.
    You probably have both installed and the 1.6 version is used to launch the server.
     
  11. Offline

    globox99

    Please give me a link to the guide. How do I recompiled the java plugin to version 1.6
     
  12. Offline

    maxp0wer789

    change your bat which starts your server change this line:
    %ProgramFiles%\Java\jre6\bin\java.exe"
    to
    %ProgramFiles%\Java\jre7\bin\java.exe"

    your path may be different the change from jre6 to jre7 does the trick
     
  13. Offline

    globox99

    I have LINUX!
    Server is not on my computer. Server is hosting
     
  14. Offline

    globox99

  15. Offline

    supaFool

    lol Dude, Change you run file to JRE7....thats the only way, if you cant to that, change the JRE System Library to 1.6, if it is already 1.6, then change it to 1.7 and Download JRE7....Either your server is telling CB to start using the runtime enviroment 7, and you are using jre6 resources, or vise versa
     
  16. Offline

    samuelpapu

    sorry .. I have the same error as globox99 but the server runs on my computer.... and I have mac .... I have java 7 installed but the error comes out too .. can you help me ? thank you
     
  17. Offline

    Quenton4

Thread Status:
Not open for further replies.

Share This Page