NoSuchMethodError compiling web service
I'm receiving the following error message when I compile a class taken from The Java?Web Services Tutorial.
java.lang.NoSuchMethodError: com.sun.tools.apt.Main.process(Lcom/sun/mirror/apt/AnnotationProcessorFactory;[Ljava/lang/String;)I
BUILD FAILED (total time: 0 seconds)
Here is the code...
package test;
import javax.jws.WebMethod;
import javax.jws.WebService;
@WebService
public class NewWebServiceImpl implements NewWebServiceSEI{
public static void Main(String args[]) {
return;
}
/**
* Web service operation
*/
@WebMethod
public String test1() {
// TODO implement operation
return null;
}
}
I added the 'main' method just to see if it would solve the problem. It is not in the example.
I'm new to Java and would appreciate any help.
Thanks,
Gary

