Hi, All
I am new to servlets, i wrote one servlet file, it is compiling well.but if i try to run
this servlet. Its giving Error like: "Exception in thread "main" java.lang.NoSuchMethodError: main".
is their any problem with classpath, already i set servlet.jar file as a classpath.So let me know any thing requires.
package hall;
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class HelloWorld extends HttpServlet {
public void doGet(HttpServletRequest request,
HttpServletResponse response)
throws ServletException, IOException {
PrintWriter out = response.getWriter();
out.println("Hello World");
}
}