JAXB Example

Hi All,

I am trying to run the unmarshal-read example using xjc, which is explained inJava architecture for XML Binding http://java.sun.com/developer/technicalArticles/WebServices/jaxb/index.html#binsch

Using the following command javac test/jaxb/*.java test/jaxb/impl/*.java

am getting all the four interfaces

And when I compile UsingJAXBTest1.java I get below mentioned classe

Collection.class

BookType.class

ObjectFactory.class

Collection$Books.class

BookType$Authors.class

BookType$Promotion.class and

UsingJAXBTest1.class

But when I run UsingJAXBTest1, am getting following error:

javax.xml.bind.JAXBException: "test.jaxb" doesn't contain ObjectFactory.class or jaxb.index

Am using JAXB2.2

Can anyone help me out.. Thanks in Advance

Thanks

Shruthi

[905 byte] By [shruthi04a] at [2007-10-3 4:41:10]
# 1
"test.jaxb" doesn't contain ObjectFactory.class or jaxb.indexAdd the directory containing the compiled classes to classpath.
dvohra09a at 2007-7-14 22:45:13 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 2
Hi,Thanks alot for your reply.. Yes I have set the class path for all.. But yet am getting that error.. Now am using Eclipse and I get output as expected.. Thanks once again
shruthi04a at 2007-7-14 22:45:13 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...