Results 1 to 3 of 3
  1. #1
    Dissonance is offline Programming Again
    Join Date
    May 2012
    Location
    Eugene, OR
    Posts
    55
    Rep Power
    0

    Default java.lang.UnsupportedClassVersionError: md/MD : Unsupported major.minor version 51.0

    java.lang.UnsupportedClassVersionError: md/MD : Unsupported major.minor version 51.0

    A friend who was testing my applet got this error. I found through google that the solution is to remove JRE in lieu of JDK in the PATH. Is this error entirely due to the user's machine, or is there a way to limit its possibility in NetBeans? Most people who will be using my applet will probably not have JDK installed.

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,321
    Rep Power
    25

    Default Re: java.lang.UnsupportedClassVersionError: md/MD : Unsupported major.minor version 5

    The version number 51 is from java 1.7. A 1.6 jre can not handle it.
    Better to compile to 1.6 classes until the whole world is on 1.7
    See the options for the javac command for how to specify the output class's version.
    If you don't understand my response, don't ignore it, ask a question.

  3. #3
    Dissonance is offline Programming Again
    Join Date
    May 2012
    Location
    Eugene, OR
    Posts
    55
    Rep Power
    0

    Default Re: java.lang.UnsupportedClassVersionError: md/MD : Unsupported major.minor version 5

    Quote Originally Posted by Norm View Post
    The version number 51 is from java 1.7. A 1.6 jre can not handle it.
    Better to compile to 1.6 classes until the whole world is on 1.7
    See the options for the javac command for how to specify the output class's version.
    Thanks!

Similar Threads

  1. minor major exception
    By curious_programmer in forum New To Java
    Replies: 1
    Last Post: 05-13-2012, 10:36 PM
  2. Unsupported major.minor version 51.0
    By j2me64 in forum Java Applets
    Replies: 15
    Last Post: 04-15-2012, 10:35 AM
  3. java.lang.UnsupportedClassVersionError
    By gskn4u in forum New To Java
    Replies: 10
    Last Post: 10-03-2009, 04:20 PM
  4. Replies: 2
    Last Post: 12-02-2008, 11:01 AM
  5. java.lang.UnsupportedClassVersionError
    By bbq in forum Advanced Java
    Replies: 1
    Last Post: 07-05-2007, 04:05 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •