Solved ??Unsupported Version??

Discussion in 'Plugin Development' started by macboinc, Feb 1, 2015.

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

    macboinc

    Hey, I have been doing Bukkit for some time now, and this error has came upon me.
    Code:
    01.02 12:47:28 [Server] INFO Caused by: java.lang.UnsupportedClassVersionError: me/macboinc1/hub/Hub : Unsupported major.minor version 52.0
    01.02 12:47:28 [Server] INFO at net.minecraft.server.v1_7_R3.ThreadServerApplication.run(SourceFile:628) [craftbukkit-beta.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
    01.02 12:47:28 [Server] INFO at net.minecraft.server.v1_7_R3.MinecraftServer.run(MinecraftServer.java:469) [craftbukkit-beta.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
    01.02 12:47:28 [Server] INFO at net.minecraft.server.v1_7_R3.MinecraftServer.u(MinecraftServer.java:558) [craftbukkit-beta.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
    01.02 12:47:28 [Server] INFO at net.minecraft.server.v1_7_R3.DedicatedServer.v(DedicatedServer.java:261) [craftbukkit-beta.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
    01.02 12:47:28 [Server] INFO at net.minecraft.server.v1_7_R3.DedicatedServer.aB(DedicatedServer.java:296) [craftbukkit-beta.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
    01.02 12:47:28 [Server] INFO at org.bukkit.craftbukkit.v1_7_R3.CraftServer.dispatchServerCommand(CraftServer.java:688) [craftbukkit-beta.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
    01.02 12:47:28 [Server] INFO at org.bukkit.craftbukkit.v1_7_R3.CraftServer.dispatchCommand(CraftServer.java:701) [craftbukkit-beta.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
    01.02 12:47:28 [Server] INFO at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:180) [craftbukkit-beta.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
    01.02 12:47:28 [Server] INFO at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:23) [craftbukkit-beta.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
    01.02 12:47:28 [Server] INFO at org.bukkit.Bukkit.reload(Bukkit.java:288) [craftbukkit-beta.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
    01.02 12:47:28 [Server] INFO at org.bukkit.craftbukkit.v1_7_R3.CraftServer.reload(CraftServer.java:797) [craftbukkit-beta.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
    01.02 12:47:28 [Server] INFO at org.bukkit.craftbukkit.v1_7_R3.CraftServer.loadPlugins(CraftServer.java:355) [craftbukkit-beta.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
    01.02 12:47:28 [Server] INFO at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:251) [craftbukkit-beta.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
    01.02 12:47:28 [Server] INFO at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:328) ~[craftbukkit-beta.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
    01.02 12:47:28 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:131) ~[craftbukkit-beta.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
    01.02 12:47:28 [Server] INFO org.bukkit.plugin.InvalidPluginException: java.lang.UnsupportedClassVersionError: me/macboinc1/hub/Hub : Unsupported major.minor version 52.0
    01.02 12:47:28 [Server] ERROR Could not load 'plugins/Hub.jar' in folder 'plugins'
    I have tried switching my Java version from 1.8 to 1.7, and 1.7 to 1.8. It's not working. Please help...
    Thanks,
    -Mac
     
  2. Offline

    Skionz

    Compile with a lower or the same version of Java that your server is running.
     
  3. Offline

    macboinc

    The server runs on 7
     
  4. Offline

    Skionz

  5. Offline

    1Rogue

    You're compiling your plugin to run for Java 8.
     
  6. Offline

    macboinc

    Java 6 was giving the server problems, and at this point, I am going to change hosting services.
     
  7. Offline

    1Rogue

    I mean it's not their fault, they use Java 7 and you're compiling your plugin with Java 8. That's exactly what the error is saying. Whatever you think is switching the version you are compiling with, it isn't doing it.
     
  8. Offline

    macboinc

    I have tried compiling it in Java 6,7, and 8. It's not working... I have completely removed Java from my PC four times over this matter.
     
  9. Offline

    1Rogue

     
  10. Offline

    macboinc

    Just to clarify, to change compilation versions, you completely change your Java version and than right click properties and go to Java Build Path. Than delete the Java library and add the new versions?

    @1Rogue

    EDIT by Timtower: merged posts
     
    Last edited by a moderator: Feb 1, 2015
  11. Offline

    1Rogue

    No, you change your IDE settings and specify to compile with a java version other than your system has installed (or other behaviors depending on your IDE). This can also change depending on whether or not you use maven or other tools for compilation.
     
  12. Offline

    macboinc

    So I would do it by doing this: http://i.stack.imgur.com/VwTxr.png
     
  13. Offline

    1Rogue

Thread Status:
Not open for further replies.

Share This Page