Something's Gone Horribly Wrong! D:

Discussion in 'Plugin Development' started by FlareLine, Nov 25, 2011.

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

    FlareLine

    Hello, I am just posting here to see if anyone knows what's wrong with my plugin...
    Here I have the server console from Start To Done Loading:
    Any Help Would Be Appreciated.
     
  2. Offline

    TehRandomGuy

    @FlareLine Could you post your plugin.yml file?
     
    FlareLine likes this.
  3. I think you plugin.yml file is wrong. What does your "main:" says? It probably says "me.FlareLine.AdvanZimboe.AdvanZimboe"

    So your source folders should be me\FlareLine\AdvanZimboe and you have a file calle AdvanZimbie.java with a AdvanZimboe?
     
    FlareLine likes this.
  4. Offline

    FlareLine

    Exact Replica Of plugin.yml :

    If this is wrong, what should it say? :O
    Sorry, I'm new to plugin development.

    FlareLine

    EDIT: I know the tabs (4 Spaces) do not show. I have those.
     
  5. Offline

    Abrupt

    what's your package structure in your IDE? give us the full package name that contains AdvanZimboe.java
     
    FlareLine likes this.
  6. Offline

    FlareLine

    Okay here's a screenshot of Eclipse in the Plugin:
     

    Attached Files:

  7. Offline

    TehRandomGuy

    Well, main should be me.FlareLine.AdvanZimboe.AdvanZimboe, which it is. Can you show your AdvanZimboe class?
    Just making sure you have everything.
     
  8. Offline

    FlareLine

    That is the screenshot. :D
    FlareLine.

    EDIT: Sorry It Isn't I'll Post It. :p

    There. Took me 3 posts but I got it. [creeper]

    EDIT: Is This Thread Even Active Anymore? :confused:
     

    Attached Files:

    Last edited by a moderator: Jun 19, 2016
  9. Offline

    Jogy34

    I think it might be the fact that you are trying to use libraries from:

    bukkit-1.0.0-R1.SNAPSHOT.jar

    When you should use:

    craftbukkit-1.0.0-R1.SNAPSHOT.jar

    Servers run off of craftbukkit not bukkit.
     
  10. As you said, the server runs off of craftbukkit.
    Not the plugins. Referenced libraries have nothing to do how the server runs the plugin.
     
  11. Offline

    FlareLine

    No...

    The Bukkit snapshot is the right JAR to use, not CraftBukkit. [creeper]
     
  12. Offline

    Jogy34

    Yes but if you try to import BUKKIT libraries not CRAFTBUKKIT libraries and BUKKIT isn't integrated into the server then the server can't retrieve the BUKKIT libraries unless BUKKIT is integrated within the plugin itself.
     
  13. That's correct. But you wouldn't run a Bukkit plugin on a non-bukkit server.
    Craftbukkit is the implemention of Bukkit, so naturally Craftbukkit 'contains' Bukkit.
     
  14. Offline

    FlareLine

    Well The Plugin Tutorial On The Bukkit Website Says To Use The Bukkit Snapshot.
    I Hope There's A Proper Reason For This Error. :'(
     
  15. Offline

    Jogy34

    @FlareLine in the 'Referenced Libraries' part in eclipse for your java project change it from bukkit-1.0.0 R1.SNAPSHOT.jar to craftbukkit-1.0.0-R1.SNAPSHOT.jar just to see if it works. If it doesn't I'll shut-up
     
  16. Offline

    FlareLine

    Okay, I'll try it. :confused:

    EDIT: What if I Just Import Both? :eek:
     
  17. Offline

    Jogy34

    just so eclipse doesn't get confused just import the craftbukkit one.
     
  18. Offline

    FlareLine

    I can definitely tell you that Importing Both does not work. :(

    Okay Importing The CraftBukkit JAR Does Not Work As I Expected.
    You May Shut Up Now. *Smile*
    FlareLine.

    Do You Have Any Other Solutions For This?

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

    Jogy34

    Have you tried updating the craftbukkit .jar file on your server. It looks like you are running a 1.8.1 version on the server and using a 1.0 one in the plugin.
     
  20. Offline

    FlareLine

    There is no 1.0 Bukkit Yet.
    FlareLIne.
     
  21. Offline

    Jogy34

    it's in development. The same link I gave you will give you a fairly stable build only with a few bugs for some 1.0 things.
     
  22. Offline

    FlareLine

    So it's a dev build?
     
  23. Offline

    Jogy34

  24. Offline

    FlareLine

    That Doesn't Work Either! :'(
    FlareLine
    Should My Main Be:
    'main:me.FlareLine.AdvanZimboe.AdvanZimboe' Or Just One AdvanZimboe?
     
  25. Offline

    Jogy34

    Your main is fine because it is supposed to point to the main class not the package.

    When you export it to the .jar file do you have the .classpath and .project files checked?
     
  26. Offline

    FlareLine

    No, Do they have to be checked? On the tutorial it says to uncheck them. I'll try with them checked.
    Flareline.
     
  27. Offline

    bleachisback

    Can you be so kind as to upload the jar itself?
     
  28. Offline

    FlareLine

    Sure, Can you decompile it?
     
  29. Offline

    bleachisback

    AHA that's your problem. You need the .classpath but not .project (It's only for eclipse)

    EDIT:
    I wasn't going to decompile it, my original intention was to just check that it exported correctly.
     
  30. Offline

    GuntherDW

    All that waving around with libraries and such. All that has nothing to do with the problem at hand.

    A ClassNotFoundException can mean 2 things, either your jar isn't set up as it should, or your main: line in your plugin.yml is incorrect.
    Not this "craftbukkit/bukkit" library nonsense (n/o) :p
    @bleachisback no, you don't need .classpath either, that's just for eclipse as well
     
Thread Status:
Not open for further replies.

Share This Page