title: JAXB 1.0 - can I compile using 1.7 JDK?
body: <p>I've inherited a pretty old Ant project, and been asked to 'upgrade it to java 1.7'.</p>
  
  <p>Currently the project is 1.5, and has a mix of JAXB 1.0 and JAXB 2.0.</p>
  
  <p>JAXB 2.0 bits upgrade fine, but when I try and upgrade the JAXB 1.0 bits to jdk1.7 I get errors such as;</p>
  
  <pre><code>Executing 'C:\Program Files\Java\jdk1.7.0_51\bin\java.exe' with arguments:
  '-classpath'
  'C:\Users\xyz123\development\proj\lib-common\JAXB1\jaxb-xjc-1.0-ea.jar'
  'com.sun.tools.xjc.Main'
  'C:\Users\xyz123\development/proj/xml/dtd/doodah.dtd'
  'C:\Users\xyz123\development/proj/xml/xjs/doodah.xjs'
  '-d'
  'C:\Users\xyz123\development/proj/packages/mis-reports/doodah/xml'
  The ' characters around the executable and arguments are
  not part of the command.
  
  An error has occurred in the JAXB compiler.
  Please submit a bug report to jaxb-feedback@java.sun.com
  containing your input files as well as the output below.
  
  java.lang.NoSuchFieldError: INITIAL_COLOR
      at javax.xml.bind.ValidatableObject.&lt;init&gt;(ValidatableObject.java:32)
      at javax.xml.bind.MarshallableObject.&lt;init&gt;(MarshallableObject.java:54)
      at javax.xml.bind.MarshallableRootElement.&lt;init&gt;(MarshallableRootElement.java:97)
      at com.sun.tools.xjc.dtdx.DTDX.&lt;init&gt;(DTDX.java:57)
      at com.sun.tools.xjc.dtd.DTD.convert(DTD.java:113)
      at com.sun.tools.xjc.dtd.DTDParser.parse(DTDParser.java:92)
      at com.sun.tools.xjc.Main.doCompile(Main.java:85)
      at com.sun.tools.xjc.Main.compile(Main.java:106)
      at com.sun.tools.xjc.Main.main(Main.java:275)
  </code></pre>
  
  <p>Anyone got any ideas? I don't see much (if any) info on running jaxb 1.0 on a recent JDK.</p>