Hi,
I downloaded JDK 1.3.1 from Sun's website and I would like to write and compile
Java servlets. How should I set up the development environment on my local PC so I can compile servlets? Right now I wrote a HelloWorldServlet and it gave me this error:
^
HelloWorldServlet.java:7: cannot resolve symbol
symbol : class HttpServletRequest
location: class HelloWorldServlet
public void doGet(HttpServletRequest req,
^
HelloWorldServlet.java:7: cannot resolve symbol
symbol : class HttpServletResponse
location: class HelloWorldServlet
public void doGet(HttpServletRequest req,
HelloWorldServlet.java:8: cannot resolve symbol
symbol : class ServletException
location: class HelloWorldServlet
throws ServletException, IOException
^
6 errors
I downloaded the Servlet API from Sun also, but I can't understand why this is happening? I also changed my CLASSPATH statement. What am I doing wrong?