Do you need something other than the java SDK to compile servlets?

Just trying to compile a simple servlet, and get the following -
C:\Program Files\Apache Tomcat 4.0\webapps\examples\WEB-INF\classes>javac
ScottT
est.java
ScottTest.java:2: package javax.servlet does not exist
import javax.servlet.*;
^
ScottTest.java:3: package javax.servlet.http does not exist
import javax.servlet.http.*;
^
ScottTest.java:5: cannot resolve symbol
symbol  : class HttpServlet
location: class ScottTest
public class ScottTest extends HttpServlet {
                               ^
ScottTest.java:7: cannot resolve symbol
symbol  : class HttpServletRequest
location: class ScottTest
    public void doGet(HttpServletRequest request, HttpServletResponse
response)
                      ^
ScottTest.java:7: cannot resolve symbol
symbol  : class HttpServletResponse
location: class ScottTest
    public void doGet(HttpServletRequest request, HttpServletResponse
response)
                                                  ^
ScottTest.java:8: cannot resolve symbol
symbol  : class ServletException
location: class ScottTest
    throws IOException, ServletException
                        ^
6 errors

C:\Program Files\Apache Tomcat 4.0\webapps\examples\WEB-INF\classes>java
-versio
n
java version "1.4.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-b92)
Java HotSpot(TM) Client VM (build 1.4.0-b92, mixed mode)

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to