Java Web service using Apt. Do I need an annotation processor? What is wrong?
问题 I have been trying to make a simple web service and have been following this tutorial . Unfortunately I am stuck. Here is what I have done so far: 1) I created this class: package server; import javax.jws.WebService; @WebService public class HelloImpl { /** * @param name * @return Say hello to the person. */ public String sayHello(String name) { return "Hello, " + name + "!"; } } 2) I ran: apt HelloImpl.java 3) I get this warning: hostName[username:~/Desktop/webtest][534]% apt HelloImpl.java