tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin van den Bemt" <mar...@isallineed.org>
Subject RE: Changing the Servlets Directory
Date Thu, 20 Sep 2001 19:08:52 GMT
You have to have the servlet.jar (or servlet classes) in your classpath when
you compile..

Mvgr,
Martin

> -----Original Message-----
> From: Ruben [mailto:rukabak@yahoo.com.ar]
> Sent: Thursday, September 20, 2001 9:02 PM
> To: tomcat-user@jakarta.apache.org
> Subject: Re: Changing the Servlets Directory
>
>
> this is the error when i try to compile a servlet using javac -g servlet
>
> Compiling C:\java\c05\SimpleServlet.java
> Command line: "E:\jdk1.3\bin\javac.exe" -g
> "C:\java\c05\SimpleServlet.java"
> The current directory is: C:\java\c05
> C:\java\c05\SimpleServlet.java:1: package javax.servlet does not exist
> import javax.servlet.*;
> ^
> C:\java\c05\SimpleServlet.java:2: package javax.servlet.http does
> not exist
> import javax.servlet.http.*;
> ^
> C:\java\c05\SimpleServlet.java:3: cannot resolve symbol
> symbol  : class HttpServlet
> location: class SimpleServlet
> public class SimpleServlet extends HttpServlet
>                                    ^
> C:\java\c05\SimpleServlet.java:8: cannot resolve symbol
> symbol  : class HttpServletRequest
> location: class SimpleServlet
>
>  _________________________________________________________ Do You
> Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com


Mime
View raw message