Plugin not work mainly plugin.yml

Discussion in 'Plugin Development' started by GRANTSWIM4, Mar 16, 2013.

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

    GRANTSWIM4

    Before i start i would like to say a good job to @Lolmewn For getting Bukkit Dev staff Hello, I am getting this is my severs console for my plugin
    Code:
    19:16:01 [SEVERE] Could not load 'plugins/Testing.jar' in folder 'plugins'
     
    org.bukkit.plugin.InvalidDescriptionException: Invalid plugin.yml
     
        at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPluginLoader.java:247)
     
        at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:132)
     
        at org.bukkit.craftbukkit.v1_4_R1.CraftServer.loadPlugins(CraftServer.java:239)
     
        at org.bukkit.craftbukkit.v1_4_R1.CraftServer.<init>(CraftServer.java:217)
     
        at net.minecraft.server.v1_4_R1.PlayerList.<init>(PlayerList.java:55)
     
        at net.minecraft.server.v1_4_R1.DedicatedPlayerList.<init>(SourceFile:11)
     
        at net.minecraft.server.v1_4_R1.DedicatedServer.init(DedicatedServer.java:104)
     
        at net.minecraft.server.v1_4_R1.MinecraftServer.run(MinecraftServer.java:399)
     
        at net.minecraft.server.v1_4_R1.ThreadServerApplication.run(SourceFile:849)
     
    Caused by: java.io.FileNotFoundException: Jar does not contain plugin.yml
     
        ... 9 more
     
    
    and in my plugin.yml is this

    Code:
    name: Real simple signcation
    main: com.github.GRANTSWIM4.RSS.Main.java
    version: 1.0
    
    also this is my main class path /RSS/src/com/github/GRANTSWIM4/rss/Main.java
     
  2. Offline

    Rocoty

    Where is the plugin.yml located? It should be in the default package
     
  3. Offline

    GRANTSWIM4

    It right here at /RSS/plugin.yml
     
  4. Offline

    Rocoty

    place it in /RSS/src/plugin.yml
     
  5. Offline

    ZeusAllMighty11

    It needs to be at
    '/src/plugin.yml'
     
  6. Offline

    GRANTSWIM4

    but bukkit says not to do this in the wki
     
  7. Offline

    Rocoty

    Yep....my mistake
     
  8. Offline

    GRANTSWIM4

  9. Offline

    Rocoty

    well....it says the .jar does not contain plugin.yml....so my suggestion would be to open and explore the .jar and see if you can find the plugin.yml
     
  10. Offline

    GRANTSWIM4

    did not work ZeusAllMighty11 and Rocoty
     
  11. Offline

    ZeusAllMighty11

    Code:
    main: com.github.GRANTSWIM4.RSS.Main.java
    
    Should be

    Code:
    main: com.github.GRANTSWIM4.RSS.Main
    
     
  12. Offline

    GRANTSWIM4

    Now i got
    Code:
    19:48:48 [SEVERE] Could not load 'plugins/Testing.jar' in folder 'plugins'
    org.bukkit.plugin.InvalidDescriptionException: main is not defined
        at org.bukkit.plugin.PluginDescriptionFile.loadMap(PluginDescriptionFile.java:213)
        at org.bukkit.plugin.PluginDescriptionFile.<init>(PluginDescriptionFile.java:42)
        at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPluginLoader.java:252)
        at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:132)
        at org.bukkit.craftbukkit.v1_4_R1.CraftServer.loadPlugins(CraftServer.java:239)
        at org.bukkit.craftbukkit.v1_4_R1.CraftServer.<init>(CraftServer.java:217)
        at net.minecraft.server.v1_4_R1.PlayerList.<init>(PlayerList.java:55)
        at net.minecraft.server.v1_4_R1.DedicatedPlayerList.<init>(SourceFile:11)
        at net.minecraft.server.v1_4_R1.DedicatedServer.init(DedicatedServer.java:104)
        at net.minecraft.server.v1_4_R1.MinecraftServer.run(MinecraftServer.java:399)
        at net.minecraft.server.v1_4_R1.ThreadServerApplication.run(SourceFile:849)
    Caused by: java.lang.NullPointerException
        at org.bukkit.plugin.PluginDescriptionFile.loadMap(PluginDescriptionFile.java:208)
        ... 10 more
    
     
  13. Offline

    ZeusAllMighty11

    Then your class isn't called 'Main'
     
  14. Offline

    GRANTSWIM4

    I saw what i did wrong i did main:main fix it but now i getting this

    Code:
    19:51:02 [SEVERE] Could not load 'plugins/Testing.jar' in folder 'plugins'
    org.bukkit.plugin.InvalidPluginException: java.lang.ClassNotFoundException: com.github.GRANTSWIM4.RSS.Main
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:184)
        at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:305)
        at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:230)
        at org.bukkit.craftbukkit.v1_4_R1.CraftServer.loadPlugins(CraftServer.java:239)
        at org.bukkit.craftbukkit.v1_4_R1.CraftServer.<init>(CraftServer.java:217)
        at net.minecraft.server.v1_4_R1.PlayerList.<init>(PlayerList.java:55)
        at net.minecraft.server.v1_4_R1.DedicatedPlayerList.<init>(SourceFile:11)
        at net.minecraft.server.v1_4_R1.DedicatedServer.init(DedicatedServer.java:104)
        at net.minecraft.server.v1_4_R1.MinecraftServer.run(MinecraftServer.java:399)
        at net.minecraft.server.v1_4_R1.ThreadServerApplication.run(SourceFile:849)
    Caused by: java.lang.ClassNotFoundException: com.github.GRANTSWIM4.RSS.Main
        at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
        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(ClassLoader.java:423)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:266)
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:173)
        ... 9 more
    
     
  15. Offline

    Rocoty

    What is the class called? The one inheriting from JavaPlugin?
     
  16. Offline

    GRANTSWIM4

    Main the path is /RSS/src/com/github/GRANTSWIM4/rss/Main.java
     
  17. Offline

    Rocoty

    Are you compiling and running in Java SE 6?
     
  18. Offline

    GRANTSWIM4

    no 7

    also im on ubuntu

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

    Rocoty

    Bukkit runs best in 6....but I doubt that is the problem, if you are both running AND compiling in 7....I hate to admit this, but I'm out of ideas
     
  20. Offline

    GRANTSWIM4

    but could ubuntu do any thing

    Wait Rocoty I think i forgot the JDK xD new computer

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

    Rocoty

    I don't know. I never used ubuntu

    EDIT: Right! Keep me updated :)
     
  22. Offline

    GRANTSWIM4

    You got it im download the JDK right now forgot it that might be why xD
     
  23. Offline

    Rocoty

Thread Status:
Not open for further replies.

Share This Page