Solved How to load a WE schematic file?

Discussion in 'Spigot Plugin Development' started by ondrej008, Jun 1, 2017.

  1. Hello guys,
    I tried using WorldEdit but I get the following error:
    Code (Text):
    [09:21:41 ERROR]: Could not load 'plugins\DogWars.jar' in folder 'plugins'
    org.bukkit.plugin.InvalidPluginException: java.lang.NoClassDefFoundError: com/sk89q/worldedit/LocalWorld
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:135) ~[spigot-1.8.8.jar:git-Spigot-5f38d38-18fbb24]
            at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:329) ~[spigot-1.8.8.jar:git-Spigot-5f38d38-18fbb24]
            at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:251) [spigot-1.8.8.jar:git-Spigot-5f38d38-18fbb24]
            at org.bukkit.craftbukkit.v1_8_R3.CraftServer.loadPlugins(CraftServer.java:292) [spigot-1.8.8.jar:git-Spigot-5f38d38-18fbb24]
            at net.minecraft.server.v1_8_R3.DedicatedServer.init(DedicatedServer.java:198) [spigot-1.8.8.jar:git-Spigot-5f38d38-18fbb24]
            at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:525) [spigot-1.8.8.jar:git-Spigot-5f38d38-18fbb24]
            at java.lang.Thread.run(Unknown Source) [?:1.8.0_111]
    Caused by: java.lang.NoClassDefFoundError: com/sk89q/worldedit/LocalWorld
            at java.lang.Class.forName0(Native Method) ~[?:1.8.0_111]
            at java.lang.Class.forName(Unknown Source) ~[?:1.8.0_111]
            at org.bukkit.plugin.java.PluginClassLoader.<init>(PluginClassLoader.java:64) ~[spigot-1.8.8.jar:git-Spigot-5f38d38-18fbb24]
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:131) ~[spigot-1.8.8.jar:git-Spigot-5f38d38-18fbb24]
            ... 6 more
    Caused by: java.lang.ClassNotFoundException: com.sk89q.worldedit.LocalWorld
            at java.net.URLClassLoader.findClass(Unknown Source) ~[?:1.8.0_111]
            at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:101) ~[spigot-1.8.8.jar:git-Spigot-5f38d38-18fbb24]
            at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:86) ~[spigot-1.8.8.jar:git-Spigot-5f38d38-18fbb24]
            at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_111]
            at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_111]
            at java.lang.Class.forName0(Native Method) ~[?:1.8.0_111]
            at java.lang.Class.forName(Unknown Source) ~[?:1.8.0_111]
            at org.bukkit.plugin.java.PluginClassLoader.<init>(PluginClassLoader.java:64) ~[spigot-1.8.8.jar:git-Spigot-5f38d38-18fbb24]
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:131) ~[spigot-1.8.8.jar:git-Spigot-5f38d38-18fbb24]
            ... 6 more
    There is a LocalWorld in my WorldEdit.jar so I don't understand.
     
  2. Wrong w/e version?
     
  3. The WE version is 6.1, which says "up to 1.8.8" my server is 1.8.8.
    I don't know if it means exlucively or inclusively, but I'll try updating.
    EDIT: Updated to 6.1.2, the same error:
    Code (Text):
    Could not load 'plugins\DogWars.jar' in folder 'plugins'
    org.bukkit.plugin.InvalidPluginException: java.lang.NoClassDefFoundError: com/sk89q/worldedit/LocalWorld
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:135) ~[spigot-1.8.8.jar:git-Spigot-5f38d38-18fbb24]
            at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:329) ~[spigot-1.8.8.jar:git-Spigot-5f38d38-18fbb24]
            at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:251) [spigot-1.8.8.jar:git-Spigot-5f38d38-18fbb24]
            at org.bukkit.craftbukkit.v1_8_R3.CraftServer.loadPlugins(CraftServer.java:292) [spigot-1.8.8.jar:git-Spigot-5f38d38-18fbb24]
            at net.minecraft.server.v1_8_R3.DedicatedServer.init(DedicatedServer.java:198) [spigot-1.8.8.jar:git-Spigot-5f38d38-18fbb24]
            at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:525) [spigot-1.8.8.jar:git-Spigot-5f38d38-18fbb24]
            at java.lang.Thread.run(Unknown Source) [?:1.8.0_111]
    Caused by: java.lang.NoClassDefFoundError: com/sk89q/worldedit/LocalWorld
            at java.lang.Class.forName0(Native Method) ~[?:1.8.0_111]
            at java.lang.Class.forName(Unknown Source) ~[?:1.8.0_111]
            at org.bukkit.plugin.java.PluginClassLoader.<init>(PluginClassLoader.java:64) ~[spigot-1.8.8.jar:git-Spigot-5f38d38-18fbb24]
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:131) ~[spigot-1.8.8.jar:git-Spigot-5f38d38-18fbb24]
            ... 6 more
    Caused by: java.lang.ClassNotFoundException: com.sk89q.worldedit.LocalWorld
            at java.net.URLClassLoader.findClass(Unknown Source) ~[?:1.8.0_111]
            at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:101) ~[spigot-1.8.8.jar:git-Spigot-5f38d38-18fbb24]
            at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:86) ~[spigot-1.8.8.jar:git-Spigot-5f38d38-18fbb24]
            at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_111]
            at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_111]
            at java.lang.Class.forName0(Native Method) ~[?:1.8.0_111]
            at java.lang.Class.forName(Unknown Source) ~[?:1.8.0_111]
            at org.bukkit.plugin.java.PluginClassLoader.<init>(PluginClassLoader.java:64) ~[spigot-1.8.8.jar:git-Spigot-5f38d38-18fbb24]
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:131) ~[spigot-1.8.8.jar:git-Spigot-5f38d38-18fbb24]
            ... 6 more
    The LocalWorld.class is in the WorldEdit.jar in the com/sk89q/worldedit. Idk what is wrong
     
    #3 ondrej008, Jun 1, 2017
    Last edited: Jun 1, 2017
  4. I added depend: [WorldEdit] in plugin yml. Works!