File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other JSE/JEE APIs and the fly likes JAXP 1.0 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "JAXP 1.0" Watch "JAXP 1.0" New topic
Author

JAXP 1.0

Pradeep Daniel
Greenhorn

Joined: Oct 11, 2006
Posts: 12
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
Marshal

Joined: Mar 22, 2005
Posts: 41631
    
  55
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.


Ping & DNS - my free Android networking tools app
Pradeep Daniel
Greenhorn

Joined: Oct 11, 2006
Posts: 12
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
Marshal

Joined: Mar 22, 2005
Posts: 41631
    
  55
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

Joined: Oct 11, 2006
Posts: 12
Thanks a Ton for your response.

I downloaded the jwsdp-1.1 (webservice development pack) which comes with JAXB 1.0 packed.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JAXP 1.0