Solved Keep getting the same error!

Discussion in 'Plugin Development' started by youngbawss22, Nov 10, 2012.

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

    youngbawss22

    Thanks for taking interest everyone!

    Anyway i am having a problem when i try to load up my plugin. This is what happens.

    Code:
    2012-11-10 21:49:11 [SEVERE] Could not load 'plugins/Test.jar' in folder 'plugins'
    org.bukkit.plugin.InvalidDescriptionException: Invalid plugin.yml
        at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPluginLoader.java:197)
        at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:132)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:229)
        at org.bukkit.craftbukkit.CraftServer.reload(CraftServer.java:579)
        at org.bukkit.Bukkit.reload(Bukkit.java:183)
        at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:22)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:185)
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:504)
        at org.bukkit.craftbukkit.CraftServer.dispatchServerCommand(CraftServer.java:496)
        at net.minecraft.server.DedicatedServer.al(DedicatedServer.java:251)
        at net.minecraft.server.DedicatedServer.r(DedicatedServer.java:216)
        at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:495)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:428)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:818)
    Caused by: java.io.FileNotFoundException: Jar does not contain plugin.yml
        ... 14 more
    I have been trying to figure this out and see why it won't work. Here is my plugin.yml if it helps.
    P.S I believe it is on the right folder, the one that contains the api and src folders. When i exported it i made sure to check the box Plugn.yml, too.

    Code:
    name: Testclass
    main: me.youngbawss22.youtube.Main
    version: 0.1
    description: >
                Test Plugin.
    commands:
      giveme:
          description: This command gives you stuff.
    Thanks for the help! And sorry, i'm a noob. :p
     
  2. Offline

    cman1885

    It's in the wrong place. Read the stacktrace.
    Caused by: java.io.FileNotFoundException: Jar does not contain plugin.yml
     
  3. Offline

    youngbawss22

    Could you give me a bit more information? I don't see how it is in the wrong place...
     
  4. Offline

    cman1885

    Why don't you? Where is it.
     
  5. Offline

    youngbawss22

    It is in the folder with the src, JRE System library and bukkit api.
     
  6. Offline

    Assult

    Your plugin.yml Is in the src folder, drag plugin.yml over your java project
     
  7. Offline

    youngbawss22

    I don't believe it is. It is in the project folder. My plugin is called Testclass, and it is in the folder called Testclass along with the folders src, Java System Library and Bukkit 1.4.2. (The api)

    I'm thinking it more along the lines of an error in the plugin.yml.
     
  8. Offline

    frozenpoptartmc

    It is.
    Your plugin.yml isn't formatted correctly
     
  9. Offline

    youngbawss22

    Thats what i thought, mind giving me a link to maybe an example plugin.yml, or just tell me what i did wrong?
     
  10. Offline

    frozenpoptartmc

    Code:
     name: yourplugin
     main: blah.blah.blah.blah
     version: blah
     description: blah
     commands:
       blah:
         description: blah
    
     
  11. Offline

    youngbawss22

    I set it up like that... still getting the error :(
     
  12. Offline

    HON95

    Because it's caused by a FileNotFoundException. Open your jar with 7-zip or simething and see if it's there.

    EDIT: The plugin.yml that is.
     
  13. Offline

    youngbawss22

    I opened it with the unarchiver (because i have a mac) and it's there...
     
  14. Offline

    HON95

    hmm, weird.
     
  15. Offline

    youngbawss22

    Should i post my code as well as the plugin.yml?
     
  16. Offline

    HON95

    Your code should be irrelevant since your problem is this: java.io.FileNotFoundException: Jar does not contain plugin.yml
     
  17. Offline

    youngbawss22

    Still getting the same error... anybody willing to help :(

    P.S How would i upload the plugin to the internet so someone could decompile it and further look into the problem.
     
  18. Offline

    fireblast709

  19. Offline

    ferrybig

    try opening your plugin.jar whit winrara to see if its realy inside the jar
     
  20. Offline

    youngbawss22

    I did, it's there. I'm just going to try and re-code it from scratch to see if i get the same error.

    Good news: I redid the whole plugin, and it worked :). I believe the problem was that i had a capital p in plugin. If that's not the problem, i'm not sure what it was. Thanks for the help everybody!

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 29, 2016
Thread Status:
Not open for further replies.

Share This Page