Compiling Plugin Problem :P

Discussion in 'Plugin Development' started by LRFLEW, Jan 16, 2011.

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

    LRFLEW

    I have finished my first Bukkit plugin, but I cannot get it to export in a way that runs in a server.

    Any time I try to run it, I get the following code:

    Code:
    SEVERE: Could not load plugins/PvP.jar in plugins: null
    org.bukkit.plugin.InvalidPluginException
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:82)
        at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:115)
        at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:80)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:41)
        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.LRFLEW.PvP.PvP
        at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:29)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:247)
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:76)
        ... 8 more
    
    Because copying and pasting 3 java files plus a yml file into a thread would be excessive, if you want to look at my source, you can download my project from *link removed because file is gone* if you think the problem might be in there.
     
  2. Offline

    Snowl

    Instead of com. have org. (in package name in plugin.yml)
     
  3. Offline

    LRFLEW

    Didn't work
    --- merged: Jan 16, 2011 8:58 PM ---
    I've also tried adding Maven dependencies, but that didn't work either.
    Updated zip to represent this
    --- merged: Jan 16, 2011 9:03 PM ---
    Ok, now I feel like an idiot :p. it was that I was following a sample plugin found around, but got switched around with my package name. Thanks
     
  4. Offline

    Snowl

    Yeah, I realised I failed. Instead of com. have org. (in package name in plugin.yml). Leave both PvP's there :p
     
  5. Offline

    Drew P. Richard

    -snip-

    Fixed it, plugin.yml in the wrong place.
     
Thread Status:
Not open for further replies.

Share This Page