This week's book giveaway is in the Reactive Progamming forum.
We're giving away four copies of Reactive Streams in Java: Concurrency with RxJava, Reactor, and Akka Streams and have Adam Davis on-line!
See this thread for details.
Win a copy of Reactive Streams in Java: Concurrency with RxJava, Reactor, and Akka Streams this week in the Reactive Progamming forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

JAXP 1.0

 
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.
 
Rancher
Posts: 43011
76
  • 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: 43011
76
  • 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.
 
What kind of corn soldier are you? And don't say "kernel" - that's only for this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!