Results 1 to 6 of 6

Thread: Need Help with compiling Servlet [Resolved]

Threaded View

  1. #1

    Thread Starter
    Big D Danial's Avatar
    Join Date
    Jul 2000
    Location
    ASP.Net Forum
    Posts
    2,877

    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

    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
    Last edited by Danial; Nov 20th, 2001 at 03:13 PM.
    [VBF RSS Feed]

    There is a great war coming. Are you sure you are on the right side? Atleast I have chosen a side.

    If I have been helpful, Please Rate my Post. Thanks.

    This post was powered by :

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width