title: Dynamically generate java sources (without xjc)
body: <p>Has anyone managed to generate java code from a JAXB schema file without XJC? </p>
  
  <p>Somewhat similar to</p>
  
  <pre><code>JavaCompiler javaCompiler = ToolProvider.getSystemJavaCompiler()
  </code></pre>
  
  <p>used to dynamically compile java code on the fly.</p>
  
  <p>Note: Running on JDK 6, meaning that <code>com.sun.*</code> tools packages are deprecated <em>(thanks <a href="https://stackoverflow.com/users/383861/blaise-doughan">Blaise Doughan</a> for the hint)</em></p>