Get the tools you need to learn Java skills fast!
Video tutorials, eBooks, hands-on lab exercises, sample code.
Get started
The moose likes Java in General and the fly likes XML Beans - The type javax.xml.stream.  XMLStreamReader cannot be resolved. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "XML Beans - The type javax.xml.stream.  XMLStreamReader cannot be resolved." Watch "XML Beans - The type javax.xml.stream.  XMLStreamReader cannot be resolved." New topic
Author

XML Beans - The type javax.xml.stream. XMLStreamReader cannot be resolved.

Richard Butterwood
Ranch Hand

Joined: Nov 07, 2005
Posts: 45
Hi,

I managed to get XML Beans installed and generated the .jar via scomp. Everything looks good apart from when I try to parse the file. Under the following code

"AddressDetailsDocument myParsedDoc = AddressDetailsDocument.Factory.parse(fleInput);"

I get the error

"The type javax.xml.stream.XMLStreamReader cannot be resolved. It is indirectly referenced from required .class files"

Am I missing another .jar file? I am referencing xbean.jar.
Richard Butterwood
Ranch Hand

Joined: Nov 07, 2005
Posts: 45
Figured it out - I needed to reference jsr173_api.jar
 
Have you tried LearnNowOnline? http://www.learnnowonline.com/
 
subject: XML Beans - The type javax.xml.stream. XMLStreamReader cannot be resolved.