NoClassDefFoundError Holographic Displays

Discussion in 'Spigot Plugin Development' started by NaJated, May 14, 2015.

  1. Hey all, I keep getting NoClassDefFoundError with Holographic Displays

    Code (Text):
    org.bukkit.plugin.InvalidPluginException: java.lang.NoClassDefFoundError: com/gmail/filoghost/holographicdisplays/api/handler/PickupHandler
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:135) ~[spigot-1.8.3.jar:git-Spigot-beb883d-234e607]
        at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:329) ~[spigot-1.8.3.jar:git-Spigot-beb883d-234e607]
        at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:251) [spigot-1.8.3.jar:git-Spigot-beb883d-234e607]
        at org.bukkit.craftbukkit.v1_8_R2.CraftServer.loadPlugins(CraftServer.java:291) [spigot-1.8.3.jar:git-Spigot-beb883d-234e607]
        at net.minecraft.server.v1_8_R2.DedicatedServer.init(DedicatedServer.java:199) [spigot-1.8.3.jar:git-Spigot-beb883d-234e607]
        at net.minecraft.server.v1_8_R2.MinecraftServer.run(MinecraftServer.java:522) [spigot-1.8.3.jar:git-Spigot-beb883d-234e607]
        at java.lang.Thread.run(Unknown Source) [?:1.8.0_31]
    Caused by: java.lang.NoClassDefFoundError: com/gmail/filoghost/holographicdisplays/api/handler/PickupHandler
        at java.lang.Class.forName0(Native Method) ~[?:1.8.0_31]
        at java.lang.Class.forName(Unknown Source) ~[?:1.8.0_31]
        at org.bukkit.plugin.java.PluginClassLoader.<init>(PluginClassLoader.java:64) ~[spigot-1.8.3.jar:git-Spigot-beb883d-234e607]
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:131) ~[spigot-1.8.3.jar:git-Spigot-beb883d-234e607]
        ... 6 more
    Caused by: java.lang.ClassNotFoundException: com.gmail.filoghost.holographicdisplays.api.handler.PickupHandler
        at java.net.URLClassLoader$1.run(Unknown Source) ~[?:1.8.0_31]
        at java.net.URLClassLoader$1.run(Unknown Source) ~[?:1.8.0_31]
        at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_31]
        at java.net.URLClassLoader.findClass(Unknown Source) ~[?:1.8.0_31]
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:101) ~[spigot-1.8.3.jar:git-Spigot-beb883d-234e607]
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:86) ~[spigot-1.8.3.jar:git-Spigot-beb883d-234e607]
        at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_31]
        at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_31]
        at java.lang.Class.forName0(Native Method) ~[?:1.8.0_31]
        at java.lang.Class.forName(Unknown Source) ~[?:1.8.0_31]
        at org.bukkit.plugin.java.PluginClassLoader.<init>(PluginClassLoader.java:64) ~[spigot-1.8.3.jar:git-Spigot-beb883d-234e607]
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:131) ~[spigot-1.8.3.jar:git-Spigot-beb883d-234e607]
        ... 6 more
     
    #1 NaJated, May 14, 2015
    Last edited: May 14, 2015
  2. make a loop through each Y coord above the X and Z and check for an air block and then teleport them to that loc.

    Code (Text):
    int maxheight = 256 - p.getY();

    for(int i = 0; i < maxheight; i++) {
        if(p.getWorld().getBlockAt(p.getX(), i, p.getZ()).getType() == Material.AIR) {
        // boom
    }
    code is sloopy, I just now wrote it raw outside of an IDE.
     
  3. Makes no sense.
     
  4. .getHighestBlockAt(Location)
     
  5. oh, maybe I don't understand what you're asking.

    though I believe others have answered your question.
     
  6. Thx, updated thread title and content.
     
  7. Do u have HolographicDisplays as dependency in plugin.yml?
     
  8. Nope, is this correct though? "depend: [HolographicDisplays]"
     
  9. Yes, seems legit. For more information about plugin.yml you can look here: http://wiki.bukkit.org/Plugin_YAML