title: Gradle - Class not loaded : org.docx4j.jaxb.Context
body: <p>I had a maven project with old docx4j dependencies, and I wanted to update to java 9. During the update I changed my project from maven to gradle.</p>
  
  <p>So now I have a gradle project in IntelliJ with this dependencies:</p>
  
  <pre><code>dependencies {
      implementation('commons-io:commons-io:2.6')
      implementation('javax.xml.bind:jaxb-api:2.4.0-b180725.047')
      implementation('org.docx4j:docx4j:6.0.1')
      implementation('org.docx4j:docx4j-ImportXHTML:6.0.1')
      implementation('org.docx4j:docx4j-export-fo:6.0.1')
      testImplementation('junit:junit:4.12')
  }
  </code></pre>
  
  <p>The <em>build</em> is working, but if I want to open a .docx file, with Docx4J.load(...) or WordprocessingMLPackage.load(...) it throws a RuntimeException.
  In debug mode I can see this message: <em>Class not loaded : org.docx4j.jaxb.Context</em></p>
  
  <p>This Context.java file has a static code block like this:</p>
  
  <pre><code>static {
      ...
  }
  </code></pre>
  
  <p>I think it's gradle specific error, because I created a new maven project with the same code and dependencies as the gradle project, and it works.</p>
  
  <p>Is there any solution for this, or should I use maven in the future too?</p>