MyEclipse: XDoclet UnsupportedClassVersionError

ereze - Sep 01, 2005 - 09:25 AM
Post subject: XDoclet UnsupportedClassVersionError
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
support-rkalla - Sep 01, 2005 - 02:18 PM
Post subject:
Quote:

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)
support-greg - Sep 01, 2005 - 04:20 PM
Post subject:
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.
ereze - Sep 01, 2005 - 08:25 PM
Post subject:
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
ereze - Sep 01, 2005 - 08:34 PM
Post subject:
I switched Xdoclet/build it to use JDK 1.4.2 language support and it all worked fine.

Thanks,

Erez
support-greg - Sep 01, 2005 - 08:51 PM
Post subject:
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
All times are GMT - 6 Hours
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits