Error Code When Loading Plugin In Bukkit

Discussion in 'Plugin Development' started by KvackPack, Jun 2, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    KvackPack

    Hello, I'm totaly new to programming stuff like this.
    So I made with a little help from WildN00b a simple plugin (test).
    But when I try to load it as a plugin i get this error:
    Code:
    11:09:41 [ALLVARLIG] Could not load 'plugins\PowerBlock.jar' in folder 'plugins'
    :
    java.lang.ClassNotFoundException: com.Uninvolved.KvackPack.PowerBlock.PowerBlock
    
            at java.net.URLClassLoader$1.run(Unknown Source)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(Unknown Source)
            at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.
    java:36)
            at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.
    java:24)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at java.lang.Class.forName0(Native Method)
            at java.lang.Class.forName(Unknown Source)
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.j
    ava:167)
            at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.
    java:194)
            at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager
    .java:117)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:103)
            at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:232)
            at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:219)
            at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:146)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:285)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    If you see something that might be the problem, please post a reply.
    By the way, the plugin is called "PowerBlock" and changes pumpkins to jack o' lanterns when getting redstone to it. Did I forget to import something?

    Regards - KvackPack
     
  2. Offline

    Jayjay110

    java.lang.ClassNotFoundException: com.Uninvolved.KvackPack.PowerBlock.PowerBlock
    Show us ur plugin.yml :)
     
  3. Offline

    KvackPack

    Code:
    name: PowerBlock
    main: com.Uninvolved.KvackPack.PowerBlock.PowerBlock
    version: 0.3.1
    There :)

    EDIT: Whopps, I forgot to name the main to "com.KvackPack.PowerBlock.PowerBlock

    That was the problem, thanks :)
     
  4. Offline

    Jayjay110

Thread Status:
Not open for further replies.

Share This Page