I downloaded books.xsd and books.xml from http://java.sun.com/developer/technicalArticles/WebServices/jaxb
Generated the classes using ./xjc.sh -p test.jaxb /Users/Me/Temp/books.xsd -d /Users/Me/Temp/work.
It generated BookCategoryType.java, BookType.java, Collection.java, ObjectFactory.java, inside /Users/Me/Temp/work/test/j
axb directory. Then I compile them: javac *.java, generating BookCategoryType.class, BookType$Authors.class, BookType$Promotion.class, BookType.class, Collection$Books.class, Collection.class, ObjectFactory.class, inside the same directory.
How do I reference these classes from Netbeans? I am writing:
JAXBContext jc = JAXBContext.newInstance("t
Unmarshaller u = jc.createUnmarshaller();
Collection collection= (Collection) unmarshaller.unmarshal(new
I am aware that Collection shold be test.jaxb.Collection. How can I do it? It just doesn't find it (it tries to import java.util.Collection, and that is not the case.
Thanks in advance