You need to run the XDoclet task with a Java 5.0 VM, otherwise it will give you this error.
If you must compile your project with Java 1.4 . You can either do two things:
- Switch your JRE libs in Eclipse to a 1.5 and run XDoclet. After it finishes, switch your JRE back to 1.4 and compile your project.
- Download an older version of the xjavadoc-1.5-snapshotxxxxx.jar in Apache Ant so it is possible of running it with java 1.4. Can't remember where I found it exactly, but just google around a bit.
yep, that was it. I changed the build to use the 1.5 jre and it worked.