jdk 1.3 and jaxp

Hi all.

I'm having trouble working with jaxp1.3. Indeed, I'm working with an old jdk(1.3).

When I'm trying to run my ant, an error occures :

bad class file: lib\jaxp-api.jar(javax/xml/parsers/DocumentBuilderFactory.class)

[javac] class file has wrong version 48.0, should be 47.0

Could someone help me ? I don't know where it comes from ...

Thanks,

florent_b

[419 byte] By [florent_ba] at [2007-11-26 16:32:50]
# 1
Try upgrading to jdk 1.4.cheers,vidyut
vidyuta at 2007-7-8 22:57:25 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 2
I can't ;(This old jdk is required, else I already would have done it.
florent_ba at 2007-7-8 22:57:25 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 3
You can download old XML libraries from sun's archive.JAXP earlier than version 1.2 can found at http://java.sun.com/xml/archive.html
topfoxya at 2007-7-8 22:57:25 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 4
I'd like to use for example :javax.xml.transform.sax.SAXSource;javax.xml.validation.Schema;javax.xml.validation.SchemaFactory;javax.xml.validation.Validator;I think this isn't possible with jaxp1.1Florent_b
florent_ba at 2007-7-8 22:57:25 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 5

If you have all the necessary class files installed properly, it's worth checking the paths and their order in the CLASSPATH environment variable. It may contain multiple references to classes named DocumentBuilderFactory, and the one with inappropriate version comes before the appropriate one so javac.exe stops searching at the first one and tries to use it. In this case rearranging the paths or renaming/removing a jar file or two can help.

prgguya at 2007-7-8 22:57:25 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 6
Ok, I'll try this.Thank you everyone for your help.Florent_b
florent_ba at 2007-7-8 22:57:25 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 7
I've refactored everything and nothing changes ...I'm almost desperated ...Florent_b.
florent_ba at 2007-7-8 22:57:25 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 8
What's the problem now? Mismatching class versions?Take into account that jaxp is only a package give interfaces for parser's implementations. I think you need xerces and xalan jars.
topfoxya at 2007-7-8 22:57:25 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 9
Ok, thanks for your help. It's ok, I found the problem. Everything's fine now ;)Florent_b
florent_ba at 2007-7-8 22:57:25 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 10
Well, what was the problem an how did you solve it. It is like torture to someone having a similar problem to find that there is no solution posted... Grrr.
javaMea at 2007-7-8 22:57:26 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...