My aplication uses jaxp 1.0 JAR file, I have change right now for which I need to change the XSD and Compile the Java source files, but I dont have the proper JAXP 1.0 environment in my machine. I tried with 1.3 version but it asks for JDK 1.5 but my applicatoin is running in 1.4.
I am not able to get the old version on JAXP any where. please suggest me how compile the XSD to generate the Java files which is compatible with version 1.4.2.
I'm not sure what you mean by "compile the XSD", but Java 1.4 includes JAXP 1.1, so you don't need to add any jar files (and in fact shouldn't).
The other issue is "it asks for JDK 1.5". Does that mean that the source code uses Java 5 features? If so, you may have problems getting it to run on Java 1.4. The least you need to do is to create class files that are compatible with Java 1.4. Check the "-source" and "-target" switches for javac; they can be used to do that.
By Compiling the XSD i mean, genetaring the java files using the XSD.
> xjc sample.xsd
Is it possible to perform this generation of java files using JDK alone ?
Joined: Mar 22, 2005
xjc isn't part if JAXP, it's part of JAXB, which is not included in any JDK. You can get JAXB 1.0 at https://jaxb.dev.java.net/1.0/, which I found by googling for "download jaxb 1.0". [ July 08, 2008: Message edited by: Ulf Dittmer ]
Joined: Oct 11, 2006
Thanks a Ton for your response.
I downloaded the jwsdp-1.1 (webservice development pack) which comes with JAXB 1.0 packed.