Re: ant with jdk5

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

 



Hi,

> $ 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

On Fedora 12 x86_64 with OpenJDK I get:

$ ant -v
Apache Ant version 1.7.1 compiled on August 13 2009
Buildfile: build.xml does not exist!
Build failed

and looking in ant.jar, I see, for example:

$ file org/apache/tools/ant/BuildEvent.class 
org/apache/tools/ant/BuildEvent.class: compiled Java class data, version 46.0 (Java 1.2)

so it doesn't look like the bytecode is too new.  I suggest trying to
get more information which class is causing the
UnsupportedClassVersionError and/or looking at all .class files in
/usr/share/java/ant.jar (and/or the other ant JARs).

Andrew
-- 
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]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux