Solved Plugin Loading Error

Discussion in 'Spigot Plugin Development' started by Vhbob, Mar 30, 2020.

  1. Hello, I am using WorldGuard to create a plugin. I am getting this error when I load my plugin. I assume there may be a version conflict between my code and the file I'm using?

    Code (Text):
    [22:32:38 INFO]: [WorldGuardBlockExtras]: Creating flags...
    [22:32:38 ERROR]: Error occurred while enabling WorldGuardBlockExtras v1.0 (Is it up to date?)
    java.lang.NoClassDefFoundError: com/sk89q/worldguard/WorldGuard
            at com.vhbob.wbe.WorldGuardBlockExtras.onEnable(WorldGuardBlockExtras.java:29) ~[?:?]
            at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:321) ~[118.jar:git-Spigot-db6de12-18fbb24]
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:340) [118.jar:git-Spigot-db6de12-18fbb24]
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:405) [118.jar:git-Spigot-db6de12-18fbb24]
            at org.bukkit.craftbukkit.v1_8_R3.CraftServer.loadPlugin(CraftServer.java:357) [118.jar:git-Spigot-db6de12-18fbb24]
            at org.bukkit.craftbukkit.v1_8_R3.CraftServer.enablePlugins(CraftServer.java:317) [118.jar:git-Spigot-db6de12-18fbb24]
            at org.bukkit.craftbukkit.v1_8_R3.CraftServer.reload(CraftServer.java:741) [118.jar:git-Spigot-db6de12-18fbb24]
            at org.bukkit.Bukkit.reload(Bukkit.java:535) [118.jar:git-Spigot-db6de12-18fbb24]
            at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:25) [118.jar:git-Spigot-db6de12-18fbb24]
            at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141) [118.jar:git-Spigot-db6de12-18fbb24]
            at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchCommand(CraftServer.java:641) [118.jar:git-Spigot-db6de12-18fbb24]
            at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchServerCommand(CraftServer.java:627) [118.jar:git-Spigot-db6de12-18fbb24]
            at net.minecraft.server.v1_8_R3.DedicatedServer.aO(DedicatedServer.java:412) [118.jar:git-Spigot-db6de12-18fbb24]
            at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:375) [118.jar:git-Spigot-db6de12-18fbb24]
            at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654) [118.jar:git-Spigot-db6de12-18fbb24]
            at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557) [118.jar:git-Spigot-db6de12-18fbb24]
            at java.base/java.lang.Thread.run(Thread.java:835) [?:?]
    Caused by: java.lang.ClassNotFoundException: com.sk89q.worldguard.WorldGuard
            at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:436) ~[?:?]
            at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:101) ~[118.jar:git-Spigot-db6de12-18fbb24]
            at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:86) ~[118.jar:git-Spigot-db6de12-18fbb24]
            at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:588) ~[?:?]
            at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521) ~[?:?]
            ... 17 more

    Line: FlagRegistry flags = WorldGuard.getInstance().getFlagRegistry();


    EDIT: it was a version error
     
  2. your plugin can't found the class com/sk89q/worldguard/WorldGuard