Plugin runs fine on windows but not centOS

Discussion in 'Spigot Plugin Help' started by DuYan, May 14, 2015.

Thread Status:
Not open for further replies.
  1. So, I couldn't run a plugin on my centOS VPS.

    I decided to make a small plugin that simply says "yo" when you do /c.

    It runs perfectly fine on windows.

    But when I do it on my centOS VPS, I get this error.

    [23:01:37 ERROR]: Could not load 'plugins/test.jar' in folder 'plugins'
    org.bukkit.plugin.InvalidPluginException: java.lang.UnsupportedClassVersionError: test/Main : Unsupported major.minor version 51.0
    at ~[Craftbukkit.jar:git-Spigot-"4133000"]
    at org.bukkit.plugin.SimplePluginManager.loadPlugin( ~[Craftbukkit.jar:git-Spigot-"4133000"]
    at org.bukkit.plugin.SimplePluginManager.loadPlugins( [Craftbukkit.jar:git-Spigot-"4133000"]
    at org.bukkit.craftbukkit.v1_8_R1.CraftServer.loadPlugins( [Craftbukkit.jar:git-Spigot-"4133000"]
    at org.bukkit.craftbukkit.v1_8_R1.CraftServer.reload( [Craftbukkit.jar:git-Spigot-"4133000"]
    at org.bukkit.Bukkit.reload( [Craftbukkit.jar:git-Spigot-"4133000"]
    at org.bukkit.command.defaults.ReloadCommand.execute( [Craftbukkit.jar:git-Spigot-"4133000"]
    at org.bukkit.command.SimpleCommandMap.dispatch( [Craftbukkit.jar:git-Spigot-"4133000"]
    at org.bukkit.craftbukkit.v1_8_R1.CraftServer.dispatchCommand( [Craftbukkit.jar:git-Spigot-"4133000"]
    at org.bukkit.craftbukkit.v1_8_R1.CraftServer.dispatchServerCommand( [Craftbukkit.jar:git-Spigot-"4133000"]
    at net.minecraft.server.v1_8_R1.DedicatedServer.aM( [Craftbukkit.jar:git-Spigot-"4133000"]
    at net.minecraft.server.v1_8_R1.DedicatedServer.z( [Craftbukkit.jar:git-Spigot-"4133000"]
    at net.minecraft.server.v1_8_R1.MinecraftServer.y( [Craftbukkit.jar:git-Spigot-"4133000"]
    at [Craftbukkit.jar:git-Spigot-"4133000"]
    at [?:1.6.0_35]
    Caused by: java.lang.UnsupportedClassVersionError: test/Main : Unsupported major.minor version 51.0
    at java.lang.ClassLoader.defineClass1(Native Method) ~[?:1.6.0_35]
    at java.lang.ClassLoader.defineClass( ~[?:1.6.0_35]
    at ~[?:1.6.0_35]
    at ~[?:1.6.0_35]
    at$000( ~[?:1.6.0_35]
    at$ ~[?:1.6.0_35]
    at Method) ~[?:1.6.0_35]
    at ~[?:1.6.0_35]
    at ~[Craftbukkit.jar:git-Spigot-"4133000"]
    at ~[Craftbukkit.jar:git-Spigot-"4133000"]
    at java.lang.ClassLoader.loadClass( ~[?:1.6.0_35]
    at java.lang.ClassLoader.loadClass( ~[?:1.6.0_35]
    at java.lang.Class.forName0(Native Method) ~[?:1.6.0_35]
    at java.lang.Class.forName( ~[?:1.6.0_35]
    at<init>( ~[Craftbukkit.jar:git-Spigot-"4133000"]
    at ~[Craftbukkit.jar:git-Spigot-"4133000"]
    ... 14 more

    Any help?
  2. Tux


    Upgrade Java
    • Like Like x 1
  3. update java
  4. Do not do 'yum install java7' EVER! Learn the proper way and download it from oracles website the .rpm and install it.
  5. Install JRE 7 from Oracle's website.
  6. I guess you could say what I said.....
  7. Sorry, I only read the first post, I was in a hurry to get off my phone (Arrived at school).
  8. Ok. I forgive you ;)
  9. I posted this just before I went to bed. And, while I was trying to fall asleep, I realized something. I was trying to figure out what was different from my laptop to my VPS, and then suddenly it dawned on me.. Java. Thank you, guys, I'm gonna go update java. Requesting lock.
Thread Status:
Not open for further replies.