Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JAXP 1.0

 
Pradeep Daniel
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Pradeep Daniel
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ?
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Pradeep Daniel
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a Ton for your response.

I downloaded the jwsdp-1.1 (webservice development pack) which comes with JAXB 1.0 packed.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic