I don't really get it

Discussion in 'Plugin Development' started by zajacmp3, Jun 20, 2012.

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


    Hello fellow coders,

    I have a problem just with working with bukkit. I looked on many other plugins and I don't see the solution so I am asking.

    182 recipes
    27 achievements
    11:24:10 [INFO] Starting minecraft server version 1.2.4
    11:24:10 [INFO] Loading properties
    11:24:10 [INFO] Starting Minecraft server on *:25565
    11:24:10 [INFO] This server is running CraftBukkit version git-Bukkit-1.2.4-R1.0
    -b2126jnks (MC: 1.2.4) (Implementing API version 1.2.4-R1.0)
    11:24:10 [SEVERE] Could not load 'plugins\Plugin.jar' in folder 'plugins'
    org.bukkit.plugin.InvalidPluginException: java.lang.UnsupportedClassVersionError
    : com/zajacmp3/broadcaster/Broadcasterplugin : Unsupported major.minor version 5
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.j
            at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.
            at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:207)
            at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:183)
            at net.minecraft.server.ServerConfigurationManager.<init>(ServerConfigur
            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: com/zajacmp3/broadcaster/Broa
    dcasterplugin : Unsupported major.minor version 51.0
            at java.lang.ClassLoader.defineClass1(Native Method)
            at java.lang.ClassLoader.defineClassCond(Unknown Source)
            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 org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.
            at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at java.lang.Class.forName0(Native Method)
            at java.lang.Class.forName(Unknown Source)
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.j
            ... 8 more
    What is bukkit asking of me? C'mon. I know C, and I know how to code just enough to make something really basic. I just don't get what bukkit want from me.

    And here is my VERY SIMPLE SHIT - there is nothing in here basically I deleted everything that is not needed.
    package com.zajacmp3.broadcaster;
    import org.bukkit.plugin.java.JavaPlugin;
    public class Broadcasterplugin extends JavaPlugin{
        public void onDisable(){
        public void onEnable(){
  2. Offline


    You compiled with a newer JDK than you have Java. Try compiling with Java 6.
  3. Offline


    There is nothing wrong with your code, you are just compiling it in Java7 and running it on a Java6 server :)
  4. Offline


    You are shitting me... I was trying to make it work for like 3 days now -.-
    Thanks. I just launched server on java7. Was a lot easier ;)
    Now I can code!
    Thanks guys!!!
    ZeusAllMighty11 likes this.
  5. Offline


    Just be aware that a lot of people still use Java 6 to run their servers - something to keep in mind if you plan to publish your plugin...
  6. Offline


    Thanks, for a reminder. I am currently writing only for myself just to learn java and object programming a bit more.
Thread Status:
Not open for further replies.

Share This Page