java servlet programming errror
Posted
by abson
on Stack Overflow
See other posts from Stack Overflow
or by abson
Published on 2010-03-30T19:44:45Z
Indexed on
2010/03/30
20:13 UTC
Read the original article
Hit count: 470
C:\Tomcat5.5\webapps\WEB-INF\classes>javac MyServlet.java
MyServlet.java:2: package javax.servlet does not exist
import javax.servlet.*;
^
MyServlet.java:3: package javax.servlet.http does not exist
import javax.servlet.http.*;
^
MyServlet.java:5: cannot find symbol
symbol: class HttpServlet
public class MyServlet extends HttpServlet
^
MyServlet.java:7: cannot find symbol
symbol : class HttpServletRequest
location: class MyServlet
public void doGet(HttpServletRequest req, HttpServletResponse res) throws Serv
letException,IOException
^
MyServlet.java:7: cannot find symbol
symbol : class HttpServletResponse
location: class MyServlet
public void doGet(HttpServletRequest req, HttpServletResponse res) throws Serv
letException,IOException
^
MyServlet.java:7: cannot find symbol
symbol : class ServletException
location: class MyServlet
public void doGet(HttpServletRequest req, HttpServletResponse res) throws Serv
letException,IOException
^
6 errors
© Stack Overflow or respective owner