Tuesday, March 22, 2011

Generating java classes from xsd (Eclipse) : Jaxb

  1. Create a java project in eclipse
  2. Create a xsd file: (Copy xsd file from here )
  3. Run xjc command in command prompt.
    Go to the project folder having this xsd. Note that eclipse has src folder....we have to generate packages here.
    run the following command here

  4. Now go to eclipse and these java classes to the project and we are done.


  1. Hello, sir i would like to ask that what is the scope of java training, what all topics should be covered and it is kinda bothering me … and has anyone studies from this course http://www.wiziq.com/course/1779-core-and-advance-java-concepts of core and advance java online ?? or tell me any other guidance...
    would really appreciate help… and Also i would like to thank for all the information you are providing on java concepts.