| Author |
Message |
|
|
Post subject: XDoclet UnsupportedClassVersionError
Posted: Sep 01, 2005 - 09:25 AM
|
|
Veteran Member


Joined: Oct 04, 2003
Posts: 198
|
|
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 |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Sep 01, 2005 - 02:18 PM
|
|
Moderator


Joined: Jan 06, 2004
Posts: 23459
|
|
| 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
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Sep 01, 2005 - 04:20 PM
|
|
Moderator


Joined: Mar 31, 2004
Posts: 1598
|
|
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
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Sep 01, 2005 - 08:25 PM
|
|
Veteran Member


Joined: Oct 04, 2003
Posts: 198
|
|
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 |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Sep 01, 2005 - 08:34 PM
|
|
Veteran Member


Joined: Oct 04, 2003
Posts: 198
|
|
I switched Xdoclet/build it to use JDK 1.4.2 language support and it all worked fine.
Thanks,
Erez |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Sep 01, 2005 - 08:51 PM
|
|
Moderator


Joined: Mar 31, 2004
Posts: 1598
|
|
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
|
| |
|
|
|
 |
|
|