Solved Need some help

Discussion in 'Plugin Help/Development/Requests' started by Rapid!, Dec 28, 2014.

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

    Rapid!

    So for the last few weeks, I kinda went away from bukkit for personal reasons. Came back, and downloaded the new update, and it worked fine on my server. I made a very simple bukkit plugin, to refresh my memory, but when I tried to export the plugin into my server, it did not work at-all and did not register, my eclipse, bukkit, server, Java etc etc are all up to do, I will leave the codes, and server log below

    Code: http://pastebin.com/crt06Ghf
    plugin.yml: http://pastebin.com/aC0dxZDy
    Server log: http://pastebin.com/UXHwQHJe
    (Server is ran off my computer)
     
  2. Offline

    mine-care

    org.bukkit.plugin.InvalidPluginException: Cannot find main class `com.rapidw.tes
    ting.Test;
    The class is not found, open the jar with your favorite zipper/unzipper and check if tghe class exists within the jar.

    Also you dont need to print enable/disable messages since bukkti does it by its own, last but not least, this forum belongs in plugin development section :) requesting move.
     
    Rapid! likes this.
  3. Offline

    bwfcwalshy Retired Staff

    Moved to Plugin Development.

    @mine-care It's past xmas, more like happy holidays/newyear ;)
     
    Rapid! likes this.
  4. Offline

    mine-care

    @bwfcwalshy thanks for moving,

    Well it is indeed but here (in the country i live) we wish merry xmas even now or we use another expression that in exact translation in english makes no sence at all: "Many years" yes it makes perfect sence here XD so i didnt know what to wish xD
    Thanks for helping

    Back on topic now =)
     
  5. Offline

    Rapid!

    The class does exist in the jar file.

    Thanks for moving!
     
  6. Offline

    bwfcwalshy Retired Staff

    @Rapid! Try refreshing and reexporting your jar, sometimes IDE's usually Eclipse have this issue where they don't export all the classes but they are there.

    EDIT: Your plugin.yml is also wrong, it should look like this


    Code:
    name: Test
    version: 1.0
    main: com.rapidw.testing.Test;
    author: RapidWolf24
    description: test plugin
    
    commands:
      test:
        description: runs the test command.
    Have fun on the rest of your coding errors, trust me you get a lot ;) But despite errors and bugs, I still love to code!
     
  7. Offline

    Rapid!

    Hmm, just edited the plugin.yml and still not working.
     
  8. Offline

    bwfcwalshy Retired Staff

  9. Offline

    Rapid!

  10. Offline

    bwfcwalshy Retired Staff

    @Rapid! Yes, your plugin.yml is invalid. Did you refresh the jar after making the changes.
     
  11. Offline

    Skionz

    @Rapid! Your exporting it incorrectly or your plugin.yml file is in the wrong location.
     
  12. Offline

    Rapid!

  13. Offline

    bwfcwalshy Retired Staff

    @Rapid! Yes that is the wrong place, grab the plugin.yml and put it into the project it self. So it is with the Java libraries.
     
  14. Offline

    Rapid!

    @bwfcwalshy The plugin.yml is now in the correct place, but it is still saying that it cannot load the plugin, and Cannot find the main class. I have check the jar file, and the yml, and java class is in the correct area.
     
  15. Offline

    teej107

    @Rapid! The main: in your plugin.yml must be the fully qualified name of your JavaPlugin extended class.
     
  16. Offline

    Rapid!

    Anyone ? this is driving me insane!
     
  17. Offline

    teej107

    @Rapid!
     
  18. Offline

    Rapid!

    @teej107 Can you show me where I've gone wrong?
     
  19. Offline

    DemKazoo

    D00d, he said. IF your main class's name, (The one extending JavaPlugin) must be the exact same as in your plugin.yml:

    So if my "Main" class was located in cookie.kazoo.dough package I would have to do:
    1. main: cookie.kazoo.dough.Main
      If I would use: cookie.kazoo.dough.main it doesn't work because Java is strict on these syntax things.
     
  20. Offline

    teej107

    The name is case sensitive.
     
    DemKazoo likes this.
  21. Offline

    Rapid!

    Issue has been fixed, after talking with a friend! Thank you to everyone who has helped
     
Thread Status:
Not open for further replies.

Share This Page