I Get invalid plugin exception what should i do ?

Discussion in 'Plugin Development' started by Logon, Jan 19, 2011.

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


    Im having a problem with my plugin i use code generated from a template (i use netbeans) i put it in a package called com.bukkit.Logon.Whitelist and i put plugin.yml outside it i still get alot of error

    2011-jan-19 13:22:13 org.bukkit.plugin.SimplePluginManager loadPlugins
    ALLVARLIG: Could not load plugins\Whitelist.jar in plugins: null
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.j
            at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.
            at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:37)
            at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:153)
            at net.minecraft.server.MinecraftServer.c(MinecraftServer.java:140)
            at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:104)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:177)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:512)
    Caused by: java.lang.ClassNotFoundException: com.bukkit.Logon.Whitelist
            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.
            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
            ... 8 more
    Any ideas ?

  2. Offline


    For one make sure your plugin.yml starts in com.bukkit.Logon.Whitelist.Whitelist assuming Whitelist is the name of your main class, if not change that last word to the name of your main class. Also make sure your plugin.yml is not in the package, it shouldn't be in any package for that matter.

    Feel free to pm me with any other questions.
  3. Offline


    Thanks ! I only had com.bukkit.Logon.Whitelist so i didn't tell the plugin loader what class was my main Thank !
Thread Status:
Not open for further replies.

Share This Page