Problem/Bug My Java plugin isnt working on my server.

Discussion in 'General Help' started by CooperCraft15, Jan 23, 2016.

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

    CooperCraft15

    When I do /pl it isnt on there, And I cant do /about BusinessMe, btw I'm new to java :p

    http://pastebin.com/wEaEVXSs

    <EDIT by Timtower: removed mediafire>
     
    Last edited by a moderator: Jan 23, 2016
  2. Offline

    Caedus

    Do you have a plugin.yml?
     
  3. Offline

    CooperCraft15

    Yes I do
    http://pastebin.com/y2TpXD0T

    Does anyone have a clue why it isnt working?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jan 23, 2016
  4. Online

    timtower Administrator Administrator Moderator

  5. Offline

    CooperCraft15

    Last edited: Jan 23, 2016
  6. Online

    timtower Administrator Administrator Moderator

    @CooperCraft15 Your indentation in your plugin.yml is wrong.
    Instead of copy pasting a template write the values by hand, make sure to use spaces.
     
  7. Offline

    CooperCraft15

    org.bukkit.plugin.InvalidPluginException: Cannot find main class `me.renovirus.myplugin'

    EDIT: How can I fix this?
     
  8. Offline

    Caedus

    @CooperCraft15
    That's because you're not telling the plugin.yml where to find your main .class.

    main: me.renovirus.myplugin

    ^That directs toward your package, but not your main class within that package. In reality it should look something like:

    main: me.renovirus.myplugin.businessme
     
  9. Offline

    CooperCraft15

    Ill try that

    Caused by: java.lang.ClassNotFoundException: me.renovirus.myplugin.businessme

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
  10. Offline

    Caedus

    Come now, I said it would look SOMETHING like my example.

    What is the name of your main class? The one with onEnable(). Insert that where 'businessme' is.
     
  11. Offline

    CooperCraft15

    void me.renovirus.myplugin.BusinessMe.onEnable()

    Caused by: java.lang.UnsupportedClassVersionError: me/renovirus/myplugin/BusinessMe : Unsupported major.minor version 52.0

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
  12. Offline

    Caedus

    I give up.
     
  13. Offline

    CooperCraft15

    Why xD

    How do I compile with jre6, im new to this xD

    Fixed it, how do I do it so it loads a folder with yml's in it?

    EDIT: Like Jobs.yml businesses.yml

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

Share This Page