Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / March 2006

Tip: Looking for answers? Try searching our database.

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

Thread view: 
david wolf - 20 Mar 2006 18:22 GMT
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 - 20 Mar 2006 20:35 GMT
> I got a compile error as follows:
>
[quoted text clipped - 5 lines]
>
> 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.
Signature

Steve W. Jackson
Montgomery, Alabama

Dave Mandelin - 21 Mar 2006 00:51 GMT
It appears to be in the Java Web Services Developer Pack. Do you know
where that is installed on your system?
Steve W. Jackson - 21 Mar 2006 17:33 GMT
> 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 =
Signature

Steve W. Jackson
Montgomery, Alabama



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.