facebook

XDoclet UnsupportedClassVersionError

  1. MyEclipse Archived
  2.  > 
  3. Bugs
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #236318 Reply

    Erez
    Member

    I’ve just installed the 4.0GA and opened my workspace with it and when I try to run the XDoclet I get the following error:

    BUILD FAILED
    java.lang.UnsupportedClassVersionError: xjavadoc/ant/XJavadocTask (Unsupported major.minor version 49.0)

    what to do?

    Thanks,

    Erez

    #236349 Reply

    Riyad Kalla
    Member

    java.lang.UnsupportedClassVersionError: xjavadoc/ant/XJavadocTask (Unsupported major.minor version 49.0)

    This usually means you are trying to run a class compiled with a compiler that created bytecode that the current VM doesn’t understand.

    What JDK are you using to run Eclipse? What JDK is the default in your System PATH (typing java -version from your console)

    #236370 Reply

    Greg
    Member

    If you are using java5 you need to configure your xdoclet build settings to use java5 support.

    1. Go to MyEclipse-XDoclet project properties page and then go to the “Build” tab.
    2. Select java5 under the java language support.
    3. Press OK

    THen you should be able to re-run xdoclet and it should work.

    #236408 Reply

    Erez
    Member

    You are correct. I am using Java5 outside to run Eclipse but my project compiles to JDK 1.4.2.

    Still I looked under the xdoclet/build and it was already set to JDK5.

    I ran it again just to make sure and it still give me this error.

    Erez

    #236409 Reply

    Erez
    Member

    I switched Xdoclet/build it to use JDK 1.4.2 language support and it all worked fine.

    Thanks,

    Erez

    #236412 Reply

    Greg
    Member

    Ok, were glad everything is working now.

    Now you could help us, by heading over to the JDJ Reader’s chioce awards and giving us your vote. We really appreciate your support.
    http://jdj.sys-con.com/general/readerschoice.htm

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: XDoclet UnsupportedClassVersionError

You must be logged in to post in the forum log in