which jar file has this class: javax/xml/stream/XMLStreamWriter

D

david wolf

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
 
S

Steve W. Jackson

david wolf said:
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.
 
D

Dave Mandelin

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

Steve W. Jackson

Dave Mandelin said:
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 =
 
Joined
Jan 17, 2008
Messages
1
Reaction score
0
jsr173_api.jar

Hi there,
The jsr173_api.jar contains the javax.xml.stream.xmlstreamwriter.
The jar is in the \Sun\jwsdp-2.0\sjsxp\lib directory
Enjoy.
:stupido:
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top