ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdeisenberg <catc...@catcode.com>
Subject XML Parser give "bad version number in .class file"
Date Tue, 11 Aug 2009 12:47:51 GMT

Using Java 1.5 (and also have tried Java 1.6) on Mandriva Spring 2008.

When trying to build an android app using
   ant -debug

I get this output:
=============================================
java.lang.UnsupportedClassVersionError: Bad version number in .class file
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
        at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
        at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at
javax.xml.parsers.FactoryFinder.newInstance(FactoryFinder.java:88)
        at
javax.xml.parsers.FactoryFinder.findJarServiceProvider(FactoryFinder.java:278)
        at javax.xml.parsers.FactoryFinder.find(FactoryFinder.java:185)
        at
javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:107)
        at
org.apache.tools.ant.util.JAXPUtils.newParserFactory(JAXPUtils.java:120)
        at
org.apache.tools.ant.util.JAXPUtils.getNSParserFactory(JAXPUtils.java:104)
        at
org.apache.tools.ant.util.JAXPUtils.getNamespaceXMLReader(JAXPUtils.java:172)
        at
org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:185)
        at
org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:138)
        at
org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.java:96)
        at org.apache.tools.ant.Main.runBuild(Main.java:683)
        at org.apache.tools.ant.Main.startAnt(Main.java:199)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
Bad version number in .class file
================================
Running the following command:

  ant -diagnostics

gives this output (I have decided to err on the side of caution by including
all output)
================================================
------- Ant diagnostics report -------
Apache Ant version 1.7.0 compiled on January 10 2008

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

-------------------------------------------
 ANT PROPERTIES
-------------------------------------------
ant.version: Apache Ant version 1.7.0 compiled on January 10 2008
ant.java.version: 1.5
ant.core.lib: /usr/share/java/ant-1.7.0.jar
ant.home: /usr/share/ant

-------------------------------------------
 ANT_HOME/lib jar listing
-------------------------------------------
ant.home: /usr/share/ant

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

-------------------------------------------
 Tasks availability
-------------------------------------------
propertyfile : Not Available (the implementation class is not present)
ccmkdir : Not Available (the implementation class is not present)
importtypelib : Not Available (the implementation class is not present)
vsscheckin : Not Available (the implementation class is not present)
p4reopen : Not Available (the implementation class is not present)
image : Not Available (the implementation class is not present)
csc : Not Available (the implementation class is not present)
sshexec : Not Available (the implementation class is not present)
wlrun : Not Available (the implementation class is not present)
p4label : Not Available (the implementation class is not present)
p4revert : Not Available (the implementation class is not present)
replaceregexp : Not Available (the implementation class is not present)
jjtree : Not Available (the implementation class is not present)
jarlib-display : Not Available (the implementation class is not present)
jspc : Not Available (the implementation class is not present)
vsshistory : Not Available (the implementation class is not present)
p4submit : Not Available (the implementation class is not present)
scp : Not Available (the implementation class is not present)
ccmcheckin : Not Available (the implementation class is not present)
p4change : Not Available (the implementation class is not present)
p4delete : Not Available (the implementation class is not present)
vssadd : Not Available (the implementation class is not present)
p4integrate : Not Available (the implementation class is not present)
translate : Not Available (the implementation class is not present)
cclock : Not Available (the implementation class is not present)
chown : Not Available (the implementation class is not present)
jarlib-available : Not Available (the implementation class is not present)
rexec : Not Available (the implementation class is not present)
WsdlToDotnet : Not Available (the implementation class is not present)
ejbjar : Not Available (the implementation class is not present)
stlist : Not Available (the implementation class is not present)
serverdeploy : Not Available (the implementation class is not present)
ildasm : Not Available (the implementation class is not present)
schemavalidate : Not Available (the implementation class is not present)
cccheckin : Not Available (the implementation class is not present)
ccunlock : Not Available (the implementation class is not present)
wljspc : Not Available (the implementation class is not present)
telnet : Not Available (the implementation class is not present)
sosget : Not Available (the implementation class is not present)
p4sync : Not Available (the implementation class is not present)
ccmklabel : Not Available (the implementation class is not present)
p4edit : Not Available (the implementation class is not present)
antlr : Not Available (the implementation class is not present)
netrexxc : Not Available (the implementation class is not present)
ftp : Not Available (the implementation class is not present)
ccmcheckout : Not Available (the implementation class is not present)
xmlvalidate : Not Available (the implementation class is not present)
p4resolve : Not Available (the implementation class is not present)
iplanet-ejbc : Not Available (the implementation class is not present)
ccmcheckintask : Not Available (the implementation class is not present)
native2ascii : Not Available (the implementation class is not present)
ccrmtype : Not Available (the implementation class is not present)
starteam : Not Available (the implementation class is not present)
vsscheckout : Not Available (the implementation class is not present)
mimemail : Not Available (the implementation class is not present)
stylebook : Not Available (the implementation class is not present)
soscheckin : Not Available (the implementation class is not present)
stlabel : Not Available (the implementation class is not present)
cab : Not Available (the implementation class is not present)
splash : Not Available (the implementation class is not present)
ccmkbl : Not Available (the implementation class is not present)
cccheckout : Not Available (the implementation class is not present)
p4have : Not Available (the implementation class is not present)
jdepend : Not Available (the implementation class is not present)
jsharpc : Not Available (the implementation class is not present)
symlink : Not Available (the implementation class is not present)
script : Not Available (the implementation class is not present)
ccmcreatetask : Not Available (the implementation class is not present)
rpm : Not Available (the implementation class is not present)
attrib : Not Available (the implementation class is not present)
echoproperties : Not Available (the implementation class is not present)
stcheckin : Not Available (the implementation class is not present)
chgrp : Not Available (the implementation class is not present)
stcheckout : Not Available (the implementation class is not present)
p4labelsync : Not Available (the implementation class is not present)
vsscreate : Not Available (the implementation class is not present)
ejbc : Not Available (the implementation class is not present)
vbc : Not Available (the implementation class is not present)
wsdltodotnet : Not Available (the implementation class is not present)
ccmkattr : Not Available (the implementation class is not present)
ccupdate : Not Available (the implementation class is not present)
renameext : Not Available (the implementation class is not present)
vsslabel : Not Available (the implementation class is not present)
vsscp : Not Available (the implementation class is not present)
p4fstat : Not Available (the implementation class is not present)
setproxy : Not Available (the implementation class is not present)
wlstop : Not Available (the implementation class is not present)
p4counter : Not Available (the implementation class is not present)
ilasm : Not Available (the implementation class is not present)
soscheckout : Not Available (the implementation class is not present)
ccuncheckout : Not Available (the implementation class is not present)
jarlib-resolve : Not Available (the implementation class is not present)
jlink : Not Available (the implementation class is not present)
javacc : Not Available (the implementation class is not present)
pvcs : Not Available (the implementation class is not present)
jarlib-manifest : Not Available (the implementation class is not present)
ccmklbtype : Not Available (the implementation class is not present)
sound : Not Available (the implementation class is not present)
scriptdef : Not Available (the implementation class is not present)
blgenclient : Not Available (the implementation class is not present)
jjdoc : Not Available (the implementation class is not present)
ccmkelem : Not Available (the implementation class is not present)
javah : Not Available (the implementation class is not present)
ccmreconfigure : Not Available (the implementation class is not present)
p4add : Not Available (the implementation class is not present)
soslabel : Not Available (the implementation class is not present)
depend : Not Available (the implementation class is not present)
vssget : 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
=================================

What am I doing wrong?



-- 
View this message in context: http://www.nabble.com/XML-Parser-give-%22bad-version-number-in-.class-file%22-tp24916911p24916911.html
Sent from the Ant - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message