srini_gogi
Posts: 1
Nickname: gogi
Registered: May, 2003
|
|
Re: Error with java SimpleServlet
|
Posted: May 14, 2003 3:05 AM
|
|
Hi, You are getting erors because u have not set the servlet.jar in the class path.this jar will contain the support for HTTP Servlets. Srinivas
> F:\Servlets Project\SimpleServlet.java:3: package > javax.servlet does not exist > import javax.servlet.*; > ^ > F:\Servlets Project\SimpleServlet.java:5: package > javax.servlet.http does not exist > import javax.servlet.http.*; > ^ > F:\Servlets Project\SimpleServlet.java:7: cannot resolve > symbol > symbol : class HttpServlet > location: class SimpleServlet > public class SimpleServlet extends HttpServlet { > ^ > F:\Servlets Project\SimpleServlet.java:15: cannot resolve > symbol > symbol : class HttpServletRequest > location: class SimpleServlet > public void doGet (HttpServletRequest request, > HttpServletResponse response) > ^ > F:\Servlets Project\SimpleServlet.java:15: cannot resolve > symbol > symbol : class HttpServletResponse > location: class SimpleServlet > public void doGet (HttpServletRequest request, > HttpServletResponse response) > ^ > F:\Servlets Project\SimpleServlet.java:17: cannot resolve > symbol > symbol : class ServletException > location: class SimpleServlet > throws ServletException, IOException { > ^ > 6 errors
> F:\Servlets Project\SimpleServlet.java:3: package > javax.servlet does not exist > import javax.servlet.*; > ^ > F:\Servlets Project\SimpleServlet.java:5: package > javax.servlet.http does not exist > import javax.servlet.http.*; > ^ > F:\Servlets Project\SimpleServlet.java:7: cannot resolve > symbol > symbol : class HttpServlet > location: class SimpleServlet > public class SimpleServlet extends HttpServlet { > ^ > F:\Servlets Project\SimpleServlet.java:15: cannot resolve > symbol > symbol : class HttpServletRequest > location: class SimpleServlet > public void doGet (HttpServletRequest request, > HttpServletResponse response) > ^ > F:\Servlets Project\SimpleServlet.java:15: cannot resolve > symbol > symbol : class HttpServletResponse > location: class SimpleServlet > public void doGet (HttpServletRequest request, > HttpServletResponse response) > ^ > F:\Servlets Project\SimpleServlet.java:17: cannot resolve > symbol > symbol : class ServletException > location: class SimpleServlet > throws ServletException, IOException { > ^ > 6 errors
|
|