B
bob
I just installed Tomcat, and I'm trying to recompile the examples that
come with it. I get the following error:
HelloWorldExample.java:23: package javax.servlet does not exist
import javax.servlet.*;
^
HelloWorldExample.java:24: package javax.servlet.http does not exist
import javax.servlet.http.*;
^
HelloWorldExample.java:32: cannot find symbol
symbol: class HttpServlet
public class HelloWorldExample extends HttpServlet {
^
HelloWorldExample.java:35: cannot find symbol
symbol : class HttpServletRequest
location: class HelloWorldExample
public void doGet(HttpServletRequest request,
^
HelloWorldExample.java:36: cannot find symbol
symbol : class HttpServletResponse
location: class HelloWorldExample
HttpServletResponse response)
^
HelloWorldExample.java:37: cannot find symbol
symbol : class ServletException
location: class HelloWorldExample
throws IOException, ServletException
^
6 errors
C:\Program Files\Apache Software Foundation\Tomcat
5.0\webapps\servlets-examples
\WEB-INF\classes>
Does anyone know where these servlet packages are hiding? I thought
they came standard with J2SE.
come with it. I get the following error:
HelloWorldExample.java:23: package javax.servlet does not exist
import javax.servlet.*;
^
HelloWorldExample.java:24: package javax.servlet.http does not exist
import javax.servlet.http.*;
^
HelloWorldExample.java:32: cannot find symbol
symbol: class HttpServlet
public class HelloWorldExample extends HttpServlet {
^
HelloWorldExample.java:35: cannot find symbol
symbol : class HttpServletRequest
location: class HelloWorldExample
public void doGet(HttpServletRequest request,
^
HelloWorldExample.java:36: cannot find symbol
symbol : class HttpServletResponse
location: class HelloWorldExample
HttpServletResponse response)
^
HelloWorldExample.java:37: cannot find symbol
symbol : class ServletException
location: class HelloWorldExample
throws IOException, ServletException
^
6 errors
C:\Program Files\Apache Software Foundation\Tomcat
5.0\webapps\servlets-examples
\WEB-INF\classes>
Does anyone know where these servlet packages are hiding? I thought
they came standard with J2SE.