ant with jdk5

fernando at fernando at
Sat Jun 5 02:06:04 UTC 2010

Hi there,

Fedora includes Ant 1.7.1 which accoring to only
requires JDK 1.3 ti run. But if I install Sun JDK 1.5 and try to run any buildfile, I get:

$ ant -v
Apache Ant version 1.7.1 compiled on April 16 2010
Buildfile: build.xml
Detected Java version: 1.5 in: /usr/lib/jvm/java-1.5.0-sun-
Detected OS: Linux

java.lang.UnsupportedClassVersionError: Bad version number in .class file

I have many machines some with Fedora 11, 12 and 13, both 32 and 64-bit, but and some show this
error, some don't. And I can't find what to change, install or update so that Fedora Ant works with
Sun JDK 1.5.0. Curious, if I use gij and gcj (which are java 5) and works fine.

[]s, Fernando Lozano

More information about the users mailing list