title: JAXB XJC: how to generate java classes
body: <p>I'm trying to use <code>xjc</code> tool in order to generate java code according to some schemas.</p>
  
  <p>I'm performing this command:</p>
  
  <pre><code>xjc -d generated -p net.mycom.tech .
  </code></pre>
  
  <p>First question is, </p>
  
  <ol>
  <li>What <code>-b bindings.xjb</code> is meant for? Which content should it has to have? Is it mandatory?</li>
  <li><p>I'm getting these two kind of error messages:</p>
  
  <p>a. <code>[ERROR] Two declarations cause a collision in the ObjectFactory
  class.</code></p>
  
  <p>b. <code>A class/interface with the same name "net.mycom.tech.DatosGenericos" is already in use. Use a class customization to resolve this conflict.</code></p></li>
  </ol>
  
  <p>My folder is containing several xsd:</p>
  
  <p><a href="https://i.stack.imgur.com/uH0LG.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/uH0LG.png" alt="enter image description here"></a></p>
  
  <p>Some help please?</p>