Solved Server can't read my plugin.

Discussion in 'Bukkit Help' started by Alanox, Apr 17, 2013.

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

    Alanox

    Hey there!
    I recently made a plugin for my server that worked perfectly on my server on my computer.
    I wanted to upload the plugin to my VPS server, the commands didn't work.

    I have updated to the latest bukkit now. (1.5.1 R.03)
    In the console, I saw this:

    Code:
    2013-04-17 20:31:21 [SEVERE] Could not load 'plugins/Superizee.jar' in folder 'plugins'
    org.bukkit.plugin.InvalidPluginException: java.lang.UnsupportedClassVersionError: com/superizee/superizee/Main : Unsupported major.minor version 51.0
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:184)
        at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:305)
        at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:230)
        at org.bukkit.craftbukkit.v1_5_R2.CraftServer.loadPlugins(CraftServer.java:239)
        at org.bukkit.craftbukkit.v1_5_R2.CraftServer.reload(CraftServer.java:603)
        at org.bukkit.Bukkit.reload(Bukkit.java:184)
        at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:23)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:187)
        at org.bukkit.craftbukkit.v1_5_R2.CraftServer.dispatchCommand(CraftServer.java:523)
        at org.bukkit.craftbukkit.v1_5_R2.CraftServer.dispatchServerCommand(CraftServer.java:512)
        at net.minecraft.server.v1_5_R2.DedicatedServer.am(DedicatedServer.java:261)
        at net.minecraft.server.v1_5_R2.DedicatedServer.r(DedicatedServer.java:226)
        at net.minecraft.server.v1_5_R2.MinecraftServer.q(MinecraftServer.java:474)
        at net.minecraft.server.v1_5_R2.MinecraftServer.run(MinecraftServer.java:407)
        at net.minecraft.server.v1_5_R2.ThreadServerApplication.run(SourceFile:573)
    Caused by: java.lang.UnsupportedClassVersionError: com/superizee/superizee/Main : Unsupported major.minor version 51.0
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:634)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:277)
        at java.net.URLClassLoader.access$000(URLClassLoader.java:73)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:212)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
        at org.bukkit.plugin.java.PluginClassLoader.findClass0(PluginClassLoader.java:80)
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:53)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:334)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:264)
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:173)
        ... 14 more
    Thanks for helping!

    bump

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 1, 2016
  2. Offline

    MysteryManX

    Don't bump within 12-24 hours.
     
  3. Offline

    Alanox

    Yea but no one replied
     
  4. Offline

    MysteryManX

    You've bumped within 5 minutes.
     
  5. Offline

    chad53105

    What version of Java do you have on your home pc vs your VPS?

    I bet you have 6 on your VPS and 7 on your PC.
     
  6. Offline

    Alanox

    Any Ideas how to update Java?
    It's a Linux Bash VPS
     
  7. Offline

    jacklin213

    Btw this should be In the plugin development section, requested for move :D
     
  8. Offline

    Super User

    This is the right section.
     
  9. Offline

    jacklin213

    His own plugin coming up with errors , this goes in the plugin dev section
     
  10. Offline

    frymaster

    You need to change how you compile your plugin so it compiles with an older version of java. What IDE are you using?
     
  11. Offline

    Super User

    Oops sorry, thought it was already in Plugin Development.
     
  12. Offline

    TnT

    Alanox
    Google how to update Java on the Operating System you have installed on your VPS.

    jacklin213 Super User
    It really doesn't matter in this case. Its a common problem that shows up when you run a plugin compiled on a newer version of Java than you have installed. All you have done is spam up this thread with pointless debate on what forum it belongs in. A report will suffice and the moderators will make the call.
     
    fredghostkyle1 likes this.
  13. Offline

    Alanox

    No tutorials helped me. This is annoying :/

    It should work. Because the plugin PlayerColor that I made is also on the server, it works perfectly.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 1, 2016
  14. Offline

    frymaster

    Maybe you set up the project differently there? What IDE are you using, and is it a maven(pom.xml) project?
     
  15. Offline

    Alanox

    Oh well.
    I am pretty new to Java. The only thing I know is that I use Eclipse with JRE 7
     
  16. Offline

    ShadowDog007

    Alanox

    You can just set your projects compliance to Java 1.6
    That 'should' solve your problem.

    Right click your project -> Properties -> Java compiler -> Compiler Compliance Level = 1.6
     
  17. Offline

    joedan228

    be sure you just have the beta edition, for the others may have errors such as this
     
  18. Offline

    Alanox

    Thanks a lot!
     
Thread Status:
Not open for further replies.

Share This Page