Here is the out put. I run it on command prompt.
D:\BOGODA\DEVELOPMENT\PRODUCTS\SERVLETS>javac HelloServlet.java HelloServlet.java:3: package javax.servlet does not exist import javax.servlet.*; ^ HelloServlet.java:5: package javax.servlet.http does not exist import javax.servlet.http.*; ^ HelloServlet.java:21: cannot find symbol symbol: class HttpServlet public class HelloServlet extends HttpServlet ^ HelloServlet.java:23: cannot find symbol symbol : class HttpServletRequest location: class HelloServlet public void doGet(HttpServletRequest request, ^ HelloServlet.java:25: cannot find symbol symbol : class HttpServletResponse location: class HelloServlet HttpServletResponse response) ^ HelloServlet.java:27: cannot find symbol symbol : class ServletException location: class HelloServlet throws ServletException, IOException ^ 6 errors Thanks, Athula ======================================== ----- Original Message ---- From: David Delbecq <[EMAIL PROTECTED]> To: Tomcat Users List <users@tomcat.apache.org> Sent: Tuesday, December 19, 2006 6:19:11 PM Subject: Re: How to Run Servlet And please provide the complete terminal output of compilation process so we can have an idea what is your problem. Mark Thomas a écrit : > athula bogoda wrote: > >> This is the file i tried to execute. >> >> I also set the class path for jsp-api.jar and servlet.jar files. >> But it did not work. >> > > Your servlet needs to be in a package. > > Next, how did you try and compile it when you got the "Cannot find > symbols." error? > > Mark > > > > > --------------------------------------------------------------------- > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Send instant messages to your online friends http://uk.messenger.yahoo.com