which jar file has this class: javax/xml/stream/XMLStreamWriter  
Author Message
david wolf





PostPosted: 2006-3-21 1:22:00 Top

java-programmer, which jar file has this class: javax/xml/stream/XMLStreamWriter I got a compile error as follows:

java.lang.NoClassDefFoundError: javax/xml/stream/XMLStreamWriter

Which Jar file should I include in the classpath?

Thanks,

Yi

 
Steve W. Jackson





PostPosted: 2006-3-21 3:36:00 Top

java-programmer >> which jar file has this class: javax/xml/stream/XMLStreamWriter In article <email***@***.com>,
"david wolf" <email***@***.com> wrote:

> I got a compile error as follows:
>
> java.lang.NoClassDefFoundError: javax/xml/stream/XMLStreamWriter
>
> Which Jar file should I include in the classpath?
>
> Thanks,
>
> Yi

There's no such package I can see in 1.4.2 or 1.5.0, nor in the J2EE
API. But you should be able, with any XML package you use, to serialize
your XML to one of the existing stream classes.
--
Steve W. Jackson
Montgomery, Alabama
 
Dave Mandelin





PostPosted: 2006-3-21 7:51:00 Top

java-programmer >> which jar file has this class: javax/xml/stream/XMLStreamWriter It appears to be in the Java Web Services Developer Pack. Do you know
where that is installed on your system?

 
 
Steve W. Jackson





PostPosted: 2006-3-22 0:34:00 Top

java-programmer >> which jar file has this class: javax/xml/stream/XMLStreamWriter In article <email***@***.com>,
"Dave Mandelin" <email***@***.com> wrote:

> It appears to be in the Java Web Services Developer Pack. Do you know
> where that is installed on your system?

I replied in this thread yesterday that I didn't find that package
(javax.xml.stream) or class (XMLStreamReader) anywhere. But this reply
caused me to realize I'd overlooked a newer API than I've used.
Specifically, J2EE 5. This is *not* part of JWSDP, but part of J2EE 5,
which is typically installed with the JWSDP if a recent enough version
is installed. I have JWSDP 1.4, which still uses J2EE 1.4 and doesn't
include this package or class.

= Steve =
--
Steve W. Jackson
Montgomery, Alabama