ant with jdk5

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi there,

Fedora includes Ant 1.7.1 which accoring to http://ant.apache.org/faq.html#java-version 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-1.5.0.22/jre
Detected OS: Linux

BUILD FAILED
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

-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux