simple and possibly stupid quesion(Jar does not contain plugin.yml)

Discussion in 'Plugin Development' started by Silentnight18, Aug 9, 2011.

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


    OK so I have been googling and reading threads all day and I cant seem to find anything documenting this error in a way that will help me. I am extremely new to plugin development but I have a solid background in java. I am trying to just create a plugin that will load, simple as just the onEnable method with a system.out message. I am following this guide, exactly (minus the main of course) but when I go and take the jar from the distribution folder and place it into my plugins folder on a server I just made for testing(yes it has craftbukkit latest on it) i get the following error.

    2011-08-09 13:49:10 [INFO] Starting minecraft server version Beta 1.7.3
    2011-08-09 13:49:10 [INFO] Loading properties
    2011-08-09 13:49:10 [INFO] Starting Minecraft server on *:25565
    2011-08-09 13:49:10 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-945-g73697a4-b1000jnks (MC: 1.7.3)
    2011-08-09 13:49:10 [SEVERE] Could not load 'plugins\Sample.jar' in folder 'plugins': Jar does not contain plugin.yml

    Like I said, im betting there is a thread just full of this basic error shit, but I just can't seem to find it.
    If anyone can enlighten me on what may be wrong, please feel free to inform me, and keep the flame to a minimal, ty =).

    plugin.yml File (This is inside of the jar)
    author: Silent
    main: sample.Sample
    name: Sample
    version: 1.0

    package silent;

    import org.bukkit.plugin.PluginDescriptionFile;

    public class Sample extends JavaPlugin {
    PluginDescriptionFile info;
    public void onDisable(){
    public void onEnable(){
    info = getDescription();
    System.out.println("["+info.getName()+"]"+" is Enabled!");
  2. Offline


    Just like the error says, you need to have a plugin.yml in your jar.
  3. Offline


    I HAVE a plugin.yml, right in my jar....
  4. Offline


    The config is fucked up happend to me
  5. Offline


    Can you upload the jar?
  6. Offline


    how do i fix?

    Ya, is there an attachment place in this forum? or just use something like mediafire.

    Edit: I zipped up my plugins folder(only contains the 2kb .jar for my sample plugin) if u wanna just unzip and view that.

    Attached Files:

    Last edited by a moderator: May 18, 2016
  7. Offline


    You could zip it and use "upload a file" right next to "post reply"
  8. Offline


    yep, figured that out like 2 sec after I posted, all attached.
  9. Offline


    Move plugin.yml to the main package alongside the "silent" folder.
  10. Offline


    when i do this, it creates a package called <default package> and places the plugin.yml there, is that what its supposed to do?
  11. Offline


    no, put it all the way at the root of your project, so drag it over the project name and drop it there
  12. Offline


    Yeah, it looks messy but that's how it should be. If you don't like it (like me) you can right click that project pane and go to "View Java Packages as" > "Tree"

    That's how NetBeans displays the project root- <default package>

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: May 18, 2016
  13. Offline


    Ive tried that, it wont allot me to do so. I am using NetBeans.
  14. Offline


    ah that is messy (and news to me, i've avoided netbean like the plague)
    tips48 likes this.
  15. Offline


    Hahah, NetBeans' interface isn't so bad. I prefer it to Eclipse, but Eclipse has some features that are much better than NetBeans. Unfortunately, I can't have it both ways. :[

    I ought to try out IntelliJ IDEA sometime. I have it installed.
  16. Offline


    well shit....... heh ima go try that now

    you sir, hav stolen my heart. I would like to thank both of you for your time, pulling out my nothing but idiotic mistake =D, now, I am off to mindlessly waste the next 16 hours of my life, working on a plugin =).

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: May 18, 2016
  17. Offline


    BTW: eclipse is a very easy to use and good program to develop plugins on. There is even a big plugin tut. Just search HUGE PLUGIN TUTORIAL on It will help you A LOT
Thread Status:
Not open for further replies.

Share This Page