I had a project which is build on java 1.6 and
Now i upgraded the java verion to 1.8 and build the project
Here i have used gradle for building the project Here is the gradle 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:’’)
}
} }
and the error , am getting is
java.lang.NoClassDefFoundError: com/sun/mirror/apt/AnnotationProcessorFactory
Can any one tell me, where the issue is located and raising from