MyEclipse Forums
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
ereze
Post subject: XDoclet UnsupportedClassVersionError  PostPosted: Sep 01, 2005 - 09:25 AM
Veteran Member
Veteran Member


Joined: Oct 04, 2003
Posts: 202

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
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
support-rkalla
Post subject:   PostPosted: Sep 01, 2005 - 02:18 PM
Registered Member
Registered Member


Joined: Jan 06, 2004
Posts: 23824

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)

_________________
Riyad
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
support-greg
Post subject:   PostPosted: Sep 01, 2005 - 04:20 PM
Moderator
Moderator


Joined: Mar 31, 2004
Posts: 1612

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.

_________________
Greg
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
ereze
Post subject:   PostPosted: Sep 01, 2005 - 08:25 PM
Veteran Member
Veteran Member


Joined: Oct 04, 2003
Posts: 202

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
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
ereze
Post subject:   PostPosted: Sep 01, 2005 - 08:34 PM
Veteran Member
Veteran Member


Joined: Oct 04, 2003
Posts: 202

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

Thanks,

Erez
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
support-greg
Post subject:   PostPosted: Sep 01, 2005 - 08:51 PM
Moderator
Moderator


Joined: Mar 31, 2004
Posts: 1612

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

_________________
Greg
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits