title: AnnotationProcessorFactory class not found in java 8
body: <p>I had a project which is build on <strong>java 1.6</strong> and </p>
  
  <p>Now i upgraded the java verion to <strong>1.8 and</strong>  build the project </p>
  
  <p>Here i have used gradle for building the project
  Here is the gradle code</p>
  
  <pre><code>task wsgen(dependsOn: compileJava)  {
  
      doLast{
          ant {
              taskdef(name:'wsgen',
                  classname:'com.sun.tools.ws.ant.WsGen',
                  classpath:configurations.jaxws.asPath)
              wsgen(keep:true,
                  destdir: "${buildDir}",
                  resourcedestdir:"${sourceSets.main.output.resourcesDir}",
                  sourcedestdir:'src/main/java',
                  genwsdl:'true',
                  classpath:"${configurations.compile.asPath}:${sourceSets.main.output.classesDir}",
                  sei:'&lt;sei implementation class&gt;')
          }
      }
  }
  </code></pre>
  
  <p>and the error , am getting is</p>
  
  <p><strong>java.lang.NoClassDefFoundError: com/sun/mirror/apt/AnnotationProcessorFactory</strong></p>
  
  <p>Can any one tell me, where the issue is located and raising from?</p>
  
  <p>Thank you!!!</p>