I'm trying to use XMLTask 1.16, but, unfortunately, I got error,
java.lang.UnsupportedClassVersionError: Bad version number in .class file
, all the time. But if I switch back to XMLTask 1.15, it work fine. Does anyone know how to make XMLTask 1.16 work with Ant.
views:
257answers:
3XMLTask 1.16 release notes does mention:
Support for Java 1.4 and before has been removed in this release.
So you need to upgrade your JRE.
You can no longer run XMLTask with a Java1.4 runtime, since the 1.16 released last September 2009.
I'm experiencing the same issue while executing xmlTask within Eclipse 3.5 in which the default installed JDK is configured to be 1.5.12. Replacement of the jar with XMLTask 1.15 works for me too, but I'm wondering what else could be missing so we could upgrade to 1.16. Thank you, Simeon
Just in case anyone runs into the UnsupportedClassVersionError issue described above, looks like Xmltask ver. 1.16.1 has been compiled under JDK 1.5 to address it (as described here :http://blog.gmane.org/gmane.comp.java.ant.xmltask/month=20091001 , so if one can get 1.16.1 build of xmltask here: http://sourceforge.net/projects/xmltask/files/
and put it in the classpath, that eliminates the problem.
Hope it hepls someone.
Simeon Leyzerzon