Need Help with compiling Servlet [Resolved]
Hi,
I am just trying to compile few servlets but dont really know how to set up JDK so that it can find the Servlet APIs. I am using JDK 1.3 and running JavaWeb Server 2.0. I have copied all the jar files to the JDK lib folder. Still i get error message when compiling ServLet files.
Can anyone tell me how can i point the Java Compiler to the Servlet APIs, thanks a lot for any help.
Danial
PS : I get the following error message
Quote:
HelloWorldServlet.java:26: package javax.servlet does not exist
import javax.servlet.*;
^
HelloWorldServlet.java:27: package javax.servlet.http does not exist
import javax.servlet.http.*;
^
HelloWorldServlet.java:36: cannot resolve symbol
symbol : class HttpServlet
location: class sunexamples.HelloWorldServlet
class HelloWorldServlet extends HttpServlet {
^
HelloWorldServlet.java:38: cannot resolve symbol
symbol : class HttpServletRequest
location: class sunexamples.HelloWorldServlet
public void doGet (HttpServletRequest req, HttpServletResponse res)
^
HelloWorldServlet.java:38: cannot resolve symbol
symbol : class HttpServletResponse
location: class sunexamples.HelloWorldServlet
public void doGet (HttpServletRequest req, HttpServletResponse res)
^
HelloWorldServlet.java:39: cannot resolve symbol
symbol : class ServletException
location: class sunexamples.HelloWorldServlet
throws ServletException, IOException
^
6 errors