aspose file tools*
The moose likes Servlets and the fly likes fix this error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Reply locked New topic
Author

fix this error

abhishek rathur
Ranch Hand

Joined: Jan 14, 2010
Posts: 66


D:\>cd D:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\abhishek\W
EB-INF\classes

D:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\abhishek\WEB-INF\
classes>javac demo.java
demo.java:1: package javax.servlet does not exist
import javax.servlet.*;
^
demo.java:2: package javax.servlet.http does not exist
import javax.servlet.http.*;
^
demo.java:4: cannot find symbol
symbol: class HttpServlet
public class demo extends HttpServlet
^
demo.java:8: cannot find symbol
symbol : class ServletConfig
location: class demo
public void init(ServletConfig s)
^
demo.java:13: cannot find symbol
symbol : class HttpServletRequest
location: class demo
public void service(HttpServletRequest req,HttpServletResponse res)
^
demo.java:13: cannot find symbol
symbol : class HttpServletResponse
location: class demo
public void service(HttpServletRequest req,HttpServletResponse res)
^
6 errors

D:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\abhishek\WEB-INF\
classes>
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61433
    
  67

Please do not post the same question more than once.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
wood burning stoves
 
subject: fix this error