HELP!! Plugins I've Installed On MAC wont work on buggit server

Discussion in 'Bukkit Help' started by akronz, Jul 23, 2016.

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

    akronz

    Hi guys I recently made a bukkit server on 1.10.2 and I followed the steps and put a .Jar plugin file that support 1.10 in my plugins folder. This did nothing. I have the error below. I also have installed the most recent version of Java which is Java 8 for mac osx. PLS HELP

    19:32:58 ERROR]: Could not load 'plugins/EssentialsX-2.0.1.jar' in folder 'plugins'

    org.bukkit.plugin.InvalidPluginException: java.lang.UnsupportedClassVersionError: com/earth2me/essentials/Essentials : Unsupported major.minor version 51.0

    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:133) ~[craftbukkit.jar:git-Bukkit-9ff3d7f]

    at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:328) ~[craftbukkit.jar:git-Bukkit-9ff3d7f]

    at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:251) [craftbukkit.jar:git-Bukkit-9ff3d7f]

    at org.bukkit.craftbukkit.v1_10_R1.CraftServer.loadPlugins(CraftServer.java:294) [craftbukkit.jar:git-Bukkit-9ff3d7f]

    at org.bukkit.craftbukkit.v1_10_R1.CraftServer.<init>(CraftServer.java:256) [craftbukkit.jar:git-Bukkit-9ff3d7f]

    at net.minecraft.server.v1_10_R1.PlayerList.<init>(PlayerList.java:70) [craftbukkit.jar:git-Bukkit-9ff3d7f]

    at net.minecraft.server.v1_10_R1.DedicatedPlayerList.<init>(SourceFile:14) [craftbukkit.jar:git-Bukkit-9ff3d7f]

    at net.minecraft.server.v1_10_R1.DedicatedServer.init(DedicatedServer.java:184) [craftbukkit.jar:git-Bukkit-9ff3d7f]

    at net.minecraft.server.v1_10_R1.MinecraftServer.run(MinecraftServer.java:514) [craftbukkit.jar:git-Bukkit-9ff3d7f]

    at java.lang.Thread.run(Thread.java:695) [?:1.6.0_65]

    Caused by: java.lang.UnsupportedClassVersionError: com/earth2me/essentials/Essentials : Unsupported major.minor version 51.0

    at java.lang.ClassLoader.defineClass1(Native Method) ~[?:1.6.0_65]

    at java.lang.ClassLoader.defineClassCond(ClassLoader.java:637) ~[?:1.6.0_65]

    at java.lang.ClassLoader.defineClass(ClassLoader.java:621) ~[?:1.6.0_65]

    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) ~[?:1.6.0_65]

    at java.net.URLClassLoader.defineClass(URLClassLoader.java:283) ~[?:1.6.0_65]

    at java.net.URLClassLoader.access$000(URLClassLoader.java:58) ~[?:1.6.0_65]

    at java.net.URLClassLoader$1.run(URLClassLoader.java:197) ~[?:1.6.0_65]

    at java.security.AccessController.doPrivileged(Native Method) ~[?:1.6.0_65]

    at java.net.URLClassLoader.findClass(URLClassLoader.java:190) ~[?:1.6.0_65]

    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:77) ~[craftbukkit.jar:git-Bukkit-9ff3d7f]

    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:62) ~[craftbukkit.jar:git-Bukkit-9ff3d7f]

    at java.lang.ClassLoader.loadClass(ClassLoader.java:306) ~[?:1.6.0_65]

    at java.lang.ClassLoader.loadClass(ClassLoader.java:247) ~[?:1.6.0_65]

    at java.lang.Class.forName0(Native Method) ~[?:1.6.0_65]

    at java.lang.Class.forName(Class.java:249) ~[?:1.6.0_65]

    at org.bukkit.plugin.java.PluginClassLoader.<init>(PluginClassLoader.java:40) ~[craftbukkit.jar:git-Bukkit-9ff3d7f]

    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:129) ~[craftbukkit.jar:git-Bukkit-9ff3d7f]

    ... 9 more Screen Shot 2016-07-23 at 7.41.17 PM.png
     
    Last edited: Jul 23, 2016
  2. Offline

    akronz

    @AlvinB Im updated to the latest Java -_-
     
  3. Offline

    Jeyge

    The 1.6.0_65 says that you are still running Java version 6.0 update 65. You may be updated to the latest Java but you aren't running your server with it.
     
  4. Offline

    Rayzr522

    Hello from a fellow Mac user!

    So, here's the problem: You updated your Java but it didn't work *quite* right, so by default everything still runs with Java 6. I have literally the EXACT same problem, so here's what you need to do:

    1) Make a file named "StartServer.command" in the same folder as your Spigot/Bukkit JAR file.
    2) Paste the following code in:
    Show Spoiler
    Code:
    #!/bin/bash
    export JAVA_HOME="/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home"
    cd "$( dirname "$0" )"
    java -server -Xmx2048M -Xms1024M -jar NAME-OF-YOUR-JAR-FILE.jar nogui
    

    3) Change the code where it says "NAME-OF-YOUR-JAR-FILE.jar" to the name of your JAR, e.g. "spigot.jar", "craftbukkit.jar", "spigot-1.10.2.jar" or whatever your JAR file is called.
    4) Open up Terminal and type "chmod u+x " (make sure to have a space at the end) and drag "StartServer.command" onto the end of the command.
    5) Hit enter.

    Explanation: This is just making a small script that changes which Java you're using, and then running the server. If you're uncomfortable using this script or executing the "chmod u+x ..." then just Google it. This script is nothing new. It, or variants of it, have been used for YEARS. The "chmod u+x ..." is just allowing the script file to be executable ("u+x" = for this user, add the executable permission to this file)

    I hope this helps!

    EDIT: Btw, as far as I know neither of us did anything wrong when updating our Java versions, I think it's a bug in Mac OS X.
     
Thread Status:
Not open for further replies.

Share This Page