Re: ant with jdk5

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

 



Hi,

I'm using Fedora 13 x86_64, not 12. On Fedora 11 there where no problems, but I skipped F12.

It looks like something related to XML parser, see the output of ant -diagnostics.

------- Ant diagnostics report -------
Apache Ant version 1.7.1 compiled on April 16 2010

-------------------------------------------
 Implementation Version
-------------------------------------------
core tasks     : 1.7.1
optional tasks : not available

-------------------------------------------
 ANT PROPERTIES
-------------------------------------------
ant.version: Apache Ant version 1.7.1 compiled on April 16 2010
ant.java.version: 1.5
ant.core.lib: /usr/share/java/ant-1.7.1.jar
ant.home: /usr/share/ant

-------------------------------------------
 ANT_HOME/lib jar listing
-------------------------------------------
ant.home: /usr/share/ant
ant-commons-logging.jar (4031 bytes)
ant-javamail.jar (7163 bytes)
ant-nodeps.jar (438618 bytes)
ant-launcher.jar (12243 bytes)
ant-swing.jar (6772 bytes)
ant-bootstrap.jar (19013 bytes)
ant-jdepend.jar (8307 bytes)
ant-junit.jar (94995 bytes)
ant-apache-regexp.jar (3772 bytes)
ant-apache-log4j.jar (3042 bytes)
ant-trax.jar (6927 bytes)
ant.jar (1339582 bytes)
ant-apache-bsf.jar (4021 bytes)
ant-commons-net.jar (47981 bytes)
ant-apache-oro.jar (40216 bytes)
ant-apache-bcel.jar (8796 bytes)
ant-antlr.jar (5927 bytes)
ant-apache-resolver.jar (4060 bytes)
ant-jsch.jar (31458 bytes)

-------------------------------------------
 USER_HOME/.ant/lib jar listing
-------------------------------------------
user.home: /home/lozano
No such directory.

-------------------------------------------
 Tasks availability
-------------------------------------------
image : Not Available (the implementation class is not present)
wlrun : Not Available (the implementation class is not present)
stlist : Not Available (the implementation class is not present)
netrexxc : Not Available (the implementation class is not present)
starteam : Not Available (the implementation class is not present)
stylebook : Not Available (the implementation class is not present)
stlabel : Not Available (the implementation class is not present)
stcheckin : Not Available (the implementation class is not present)
stcheckout : Not Available (the implementation class is not present)
ejbc : Not Available (the implementation class is not present)
wlstop : Not Available (the implementation class is not present)
sound : Not Available (the implementation class is not present)
ddcreator : Not Available (the implementation class is not present)
A task being missing/unavailable should only matter if you are trying to use it

-------------------------------------------
 org.apache.env.Which diagnostics
-------------------------------------------
Not available.
Download it at http://xml.apache.org/commons/

-------------------------------------------
 XML Parser information
-------------------------------------------
Bad version number in .class file



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