Exporting Glaedr [Scoreboard API]

Discussion in 'Spigot Plugin Development' started by AllinoneGamer, May 8, 2017.

  1. I'm using a Scoreboard API named Glaedr, it's pretty easy to use which is the reason i am using it yet i'm having trouble with exporting it, on the github, https://github.com/bizarrealex/Glaedr, it says "Add it to your project's build path. (Note: Make sure to extract Glaedr.jar into your output path, so people don't need to add Glaedr into their server!)", i've added it to my build path obviously and it says extract it to my output path, which i'm assuming is doing this:

    [​IMG]

    Here's my stacktrace:
    Code (Text):

    [21:14:26 ERROR]: Error occurred while enabling AxisTeams v1 (Is it up to date?)
    java.lang.NoClassDefFoundError: com/alexandeh/glaedr/Glaedr
      at me.conflicted.axisteams.Main.onEnable(Main.java:32) ~[?:?]
      at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:316) ~[spigot.jar:git-Spigot-1.7.9-R0.2-208-ge0f2e95]
      at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:332) [spigot.jar:git-Spigot-1.7.9-R0.2-208-ge0f2e95]
      at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:412) [spigot.jar:git-Spigot-1.7.9-R0.2-208-ge0f2e95]
      at org.bukkit.craftbukkit.v1_7_R4.CraftServer.loadPlugin(CraftServer.java:476) [spigot.jar:git-Spigot-1.7.9-R0.2-208-ge0f2e95]
      at org.bukkit.craftbukkit.v1_7_R4.CraftServer.enablePlugins(CraftServer.java:394) [spigot.jar:git-Spigot-1.7.9-R0.2-208-ge0f2e95]
      at org.bukkit.craftbukkit.v1_7_R4.CraftServer.reload(CraftServer.java:866) [spigot.jar:git-Spigot-1.7.9-R0.2-208-ge0f2e95]
      at org.bukkit.Bukkit.reload(Bukkit.java:301) [spigot.jar:git-Spigot-1.7.9-R0.2-208-ge0f2e95]
      at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:23) [spigot.jar:git-Spigot-1.7.9-R0.2-208-ge0f2e95]
      at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:181) [spigot.jar:git-Spigot-1.7.9-R0.2-208-ge0f2e95]
      at org.bukkit.craftbukkit.v1_7_R4.CraftServer.dispatchCommand(CraftServer.java:767) [spigot.jar:git-Spigot-1.7.9-R0.2-208-ge0f2e95]
      at net.minecraft.server.v1_7_R4.PlayerConnection.handleCommand(PlayerConnection.java:1043) [spigot.jar:git-Spigot-1.7.9-R0.2-208-ge0f2e95]
      at net.minecraft.server.v1_7_R4.PlayerConnection.a(PlayerConnection.java:880) [spigot.jar:git-Spigot-1.7.9-R0.2-208-ge0f2e95]
      at net.minecraft.server.v1_7_R4.PacketPlayInChat.a(PacketPlayInChat.java:28) [spigot.jar:git-Spigot-1.7.9-R0.2-208-ge0f2e95]
      at net.minecraft.server.v1_7_R4.PacketPlayInChat.handle(PacketPlayInChat.java:65) [spigot.jar:git-Spigot-1.7.9-R0.2-208-ge0f2e95]
      at net.minecraft.server.v1_7_R4.NetworkManager.a(NetworkManager.java:186) [spigot.jar:git-Spigot-1.7.9-R0.2-208-ge0f2e95]
      at net.minecraft.server.v1_7_R4.ServerConnection.c(ServerConnection.java:81) [spigot.jar:git-Spigot-1.7.9-R0.2-208-ge0f2e95]
      at net.minecraft.server.v1_7_R4.MinecraftServer.v(MinecraftServer.java:734) [spigot.jar:git-Spigot-1.7.9-R0.2-208-ge0f2e95]
      at net.minecraft.server.v1_7_R4.DedicatedServer.v(DedicatedServer.java:289) [spigot.jar:git-Spigot-1.7.9-R0.2-208-ge0f2e95]
      at net.minecraft.server.v1_7_R4.MinecraftServer.u(MinecraftServer.java:584) [spigot.jar:git-Spigot-1.7.9-R0.2-208-ge0f2e95]
      at net.minecraft.server.v1_7_R4.MinecraftServer.run(MinecraftServer.java:490) [spigot.jar:git-Spigot-1.7.9-R0.2-208-ge0f2e95]
      at net.minecraft.server.v1_7_R4.ThreadServerApplication.run(SourceFile:628) [spigot.jar:git-Spigot-1.7.9-R0.2-208-ge0f2e95]
    Caused by: java.lang.ClassNotFoundException: com.alexandeh.glaedr.Glaedr
      at java.net.URLClassLoader.findClass(Unknown Source) ~[?:1.8.0_131]
      at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:101) ~[spigot.jar:git-Spigot-1.7.9-R0.2-208-ge0f2e95]
      at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:86) ~[spigot.jar:git-Spigot-1.7.9-R0.2-208-ge0f2e95]
      at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_131]
      at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_131]
      ... 22 more
     
     
  2. "so people don't need to add Glaedr into their server!"

    You can just add it into the plugins folder and use it from there. If you are looking to export it with the project, I would use Intellij as it is very easy to do on there (Just make sure you dont export your spigot JAR too). Another choice would be to get the Glaedr source (Assuming it's open source) and just paste it into your src folder.
     
  3. Or just create an empty "Run configuration" in Eclipse and export your Project as "Runnable Jar File"