Solved Unsupported major.minor version 51.0

Discussion in 'Bukkit Help' started by RentAMonkey, Apr 16, 2013.

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

    RentAMonkey

    I get this error on some bukkit plugins, even tough I got Java 7 installed:

    Code:
    Caused by: java.lang.UnsupportedClassVersionError: me/bubbleguj/grabhook/GrabHook : Unsupported major.minor version 51.0
    
    Any help?
     
  2. Offline

    Hoolean

    RentAMonkey

    You may have it installed but is it in use? Do:
    Code:
    java -version
    in terminal/cmd and post the results :)
     
  3. Offline

    RentAMonkey

    MrBluebear3
    I got this:
    Code:
    java version "1.6.0_33"
    Java(TM) SE Runtime Environment (build 1.6.0_33-b03-424-11M3720)
    Java HotSpot(TM) 64-Bit Server VM (build 20.8-b03-424, mixed mode)
     
  4. Offline

    Lolmewn

    RentAMonkey Plugin requires Java 7. The default location is set to some Java 6 installation, so you might want to fix that.
     
  5. Offline

    RentAMonkey

  6. Offline

    Hoolean

    RentAMonkey

    Are you running a Mac or a Windows? (or Linux)
     
  7. Offline

    RentAMonkey

    mac

    and I f*cked up everything right now :D

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 1, 2016
  8. Offline

    Hoolean

    OK, try downloading the Java 1.7.0 JDK and see if there is any improvement. That's what I did and it worked for me :)
     
  9. Offline

    RentAMonkey

    MrBluebear3
    It didn't work out :'(

    oh, i just had to export my java home :S
    Code:
    export JAVA_HOME=`/usr/libexec/java_home -v 1.7`
    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 1, 2016
Thread Status:
Not open for further replies.

Share This Page