UnsupportedClassVersionError

Discussion in 'Plugin Development' started by Ewe Loon, Nov 4, 2011.

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

    Ewe Loon

    I'm trying to write a plugin that will drop apples when leaves are broken
    unfortunatly im getting

    19:38:03 [SEVERE] Could not load 'plugins\AppleTree.jar' in folder 'plugins':
    java.lang.UnsupportedClassVersionError: me/EL/AppleTree/AppleTree : Unsupported
    major.minor version 51.0

    when the server trys to enable the pluging

    all the files can be found here ftp://loonyland.dnserver.net.nz/AppleTree.zip
    or here http://loonyland.dnserver.net.nz/files/AppleTree.zip

    Any Idea what causes this error
     
  2. Offline

    Lolmewn

    Can I see your plugin.yml?
     
  3. Offline

    desht

    Nothing to do with the plugin.yml. You're developing with Java 7 (version 51.0 tells me that), but probably trying to run your server with a Java 6 environment.
     
    Cycryl and Acrobot like this.
  4. Offline

    Ewe Loon

    Spot on, Thanks,
    [edit]
    It took a few attempts but i got it to compile with jre6, it now loads without errors
     
Thread Status:
Not open for further replies.

Share This Page