0 Replies Latest reply: Mar 20, 2014 3:35 PM by 2635779 RSS

    How to use com.sun.tools.jxc.SchemaGenTask with JDK8


      The problem discussed in


      still exists, even with the final release of JDK8.


      In the JDK8 documentation page


      there are instructions:


      Running the schema generator (schemagen): [command-line instructions, using the SchemaGen Ant task]

      that are not working any more, because some classes have been removed:

      for example: the "AnnotationProcessorFactory".


      Removing this class was planned in JEP 117:



      There is still no working alternative offered.

      In my case I am trying to automate XSD schema file generation from annotated Java sources as part of a (Apache Maven based) build process .