Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Problems generating JAXB classes using xjc

824821Dec 17 2010 — edited Aug 30 2011
I am quite new to Jaxb and have been trying to work through the example on http://www.oracle.com/technetwork/articles/javase/index-140168.html and have run into a brick wall. I have used the following command using xjc to generate the classes:

C:\jaxb-ri-20101119\bin>xjc -p test.jaxb c:\Code\books.xsd -d work

parsing a schema...
compiling a schema...
test\jaxb\BookCategoryType.java
test\jaxb\BookType.java
test\jaxb\Collection.java
test\jaxb\ObjectFactory.java

But I do not seem to have generated all the files that are required to run the examples. Can any one tell me what I am doing wrong?

CollectionType.java - This is missing
Collection.java
BookType.java
ObjectFactory.java

impl/CollectionTypeImpl.java - This is missing
impl/CollectionImpl.java - This is missing
impl/BookTypeImpl.java - This is missing
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 27 2011
Added on Dec 17 2010
3 comments
1,113 views