Solved LoadingError

Discussion in 'Spigot Plugin Development' started by forgotth4ke, Feb 18, 2020.

  1. Hey guys. I really dont know what this error is supposed to tell me,maybe anyone can help. :D




    [11:20:22 ERROR]: Could not load 'plugins\Packetlist.jar' in folder 'plugins'
    org.bukkit.plugin.InvalidPluginException: java.lang.NoClassDefFoundError: com/comphenix/protocol/events/PacketListener
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:133) ~[spigot.jar:git-Spigot-dcd1643-e60fc34]
    at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:327) ~[spigot.jar:git-Spigot-dcd1643-e60fc34]
    at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:248) [spigot.jar:git-Spigot-dcd1643-e60fc34]
    at org.bukkit.craftbukkit.v1_12_R1.CraftServer.loadPlugins(CraftServer.java:305) [spigot.jar:git-Spigot-dcd1643-e60fc34]
    at org.bukkit.craftbukkit.v1_12_R1.CraftServer.reload(CraftServer.java:750) [spigot.jar:git-Spigot-dcd1643-e60fc34]
    at org.bukkit.Bukkit.reload(Bukkit.java:525) [spigot.jar:git-Spigot-dcd1643-e60fc34]
    at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:27) [spigot.jar:git-Spigot-dcd1643-e60fc34]
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141) [spigot.jar:git-Spigot-dcd1643-e60fc34]
    at org.bukkit.craftbukkit.v1_12_R1.CraftServer.dispatchCommand(CraftServer.java:648) [spigot.jar:git-Spigot-dcd1643-e60fc34]
    at org.bukkit.craftbukkit.v1_12_R1.CraftServer.dispatchServerCommand(CraftServer.java:634) [spigot.jar:git-Spigot-dcd1643-e60fc34]
    at net.minecraft.server.v1_12_R1.DedicatedServer.aP(DedicatedServer.java:444) [spigot.jar:git-Spigot-dcd1643-e60fc34]
    at net.minecraft.server.v1_12_R1.DedicatedServer.D(DedicatedServer.java:407) [spigot.jar:git-Spigot-dcd1643-e60fc34]
    at net.minecraft.server.v1_12_R1.MinecraftServer.C(MinecraftServer.java:679) [spigot.jar:git-Spigot-dcd1643-e60fc34]
    at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:577) [spigot.jar:git-Spigot-dcd1643-e60fc34]
    at java.lang.Thread.run(Unknown Source) [?:1.8.0_201]
    Caused by: java.lang.NoClassDefFoundError: com/comphenix/protocol/events/PacketListener
    at java.lang.Class.forName0(Native Method) ~[?:1.8.0_201]
    at java.lang.Class.forName(Unknown Source) ~[?:1.8.0_201]
    at org.bukkit.plugin.java.PluginClassLoader.<init>(PluginClassLoader.java:78) ~[spigot.jar:git-Spigot-dcd1643-e60fc34]
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:129) ~[spigot.jar:git-Spigot-dcd1643-e60fc34]
    ... 14 more
    Caused by: java.lang.ClassNotFoundException: com.comphenix.protocol.events.PacketListener
    at java.net.URLClassLoader.findClass(Unknown Source) ~[?:1.8.0_201]
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:152) ~[spigot.jar:git-Spigot-dcd1643-e60fc34]
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:100) ~[spigot.jar:git-Spigot-dcd1643-e60fc34]
    at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_201]
    at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_201]
    at java.lang.Class.forName0(Native Method) ~[?:1.8.0_201]
    at java.lang.Class.forName(Unknown Source) ~[?:1.8.0_201]
    at org.bukkit.plugin.java.PluginClassLoader.<init>(PluginClassLoader.java:78) ~[spigot.jar:git-Spigot-dcd1643-e60fc34]
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:129) ~[spigot.jar:git-Spigot-dcd1643-e60fc34]
    ... 14 more
     
  2. Do you have ProtocolLib in your plugins folder?
     
  3. Yes of course. :eek:
     
  4. drives_a_ford

    Moderator

    Have you declared ProtocolLib as a dependency in your plugin.yml?
     
  5. Have you added ProtocolLib has a dependency in your plugin?

    Code (Text):
    depend: [ProtocolLib]
     
  6. Maybe ive done it wrong..did it like that



    name: packetlist
    version: 1.0
    author: forgotth4ke
    main: de.forgotth4ke.packetcha.main.Main

    [depend] : ProtocolLib
     
  7. drives_a_ford

    Moderator

    • Agree Agree x 1
    • Friendly Friendly x 1