Block Interact plugin error

Discussion in 'Plugin Development' started by replayboy12, Dec 6, 2013.

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

    replayboy12

    Hey everyone!​
    Do you guys know where the error in this selfmade plugin is?​
    17:23:06 [SEVERE] Could not load 'plugins\NuttelozeSwdawdhit.jar' in folder 'plu
    gins'
    org.bukkit.plugin.InvalidPluginException: java.lang.ClassNotFoundException: me.r
    eplayboy12.bukkit.Nutteloos
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.j
    ava:184)
    at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.
    java:305)
    at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager
    .java:230)
    at org.bukkit.craftbukkit.v1_6_R3.CraftServer.loadPlugins(CraftServer.ja
    va:241)
    at org.bukkit.craftbukkit.v1_6_R3.CraftServer.<init>(CraftServer.java:21
    9)
    at net.minecraft.server.v1_6_R3.PlayerList.<init>(PlayerList.java:56)
    at net.minecraft.server.v1_6_R3.DedicatedPlayerList.<init>(SourceFile:11
    )
    at net.minecraft.server.v1_6_R3.DedicatedServer.init(DedicatedServer.jav
    a:107)
    at net.minecraft.server.v1_6_R3.MinecraftServer.run(MinecraftServer.java
    :393)
    at net.minecraft.server.v1_6_R3.ThreadServerApplication.run(SourceFile:5
    83)
    Caused by: java.lang.ClassNotFoundException: me.replayboy12.bukkit.Nutteloos
    at java.net.URLClassLoader$1.run(Unknown Source)
    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.findClass0(PluginClassLoader
    .java:80)
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.
    java:53)
    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:173)
    ... 9 more

    Please help me, i can't fix it.
     
  2. Offline

    Freelix2000

    It is almost completely impossible to find out the problem without seeing any code. Well, actually, in this case its pretty easy. =P But, usually you should give code. Anyways, the problem is that it couldn't find your main class. That means that you messed up the plugin.yml. You need to specify the path from your package to your plugin.yml. Since I don't know the name of your main class or package, I'll just give you an example:
    If my package is "me.freelix2000.ilikecheese.meow", and my main class is called "Mew.class", then I would specify the main class in plugin.yml as "freelix2000.ilikecheese.meow.Mew". If you already understood how to do this, then look it over again just to be sure that you did that correctly, and look back at your package and main class name to be sure that you did it correctly.
     
  3. Offline

    Wolfey

    As Freelix said. Next time, double check the plugin.yml before exporting the plugin, as we all know, YAML files are very sensitive.
     
Thread Status:
Not open for further replies.

Share This Page