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]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux