• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JAXP 1.0

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic