tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bagus" <>
Subject classpath problem?
Date Wed, 11 May 2005 19:24:23 GMT


Newbie here,

I'm not sure why I'd be getting these compilation errors. I see my tomcat
server at http://localhost/.

The seems to tell me
it's my classpath, but *I* think I have my jar files properly in my
classpath. See this following shell transcript. Thanks,  Bagus

 > id
uid=0(root) gid=0(wheel) groups=0(wheel), 5(operator)

 > echo $CLASSPATH

 > ls /usr/local/jakarta-tomcat-5.5.4/common/lib/jsp-api.jar

 > ls /usr/local/jakarta-tomcat-5.5.4/common/lib/servlet-api.jar

 > pwd

 > ls -al
-rw-r--r--  1 bagus  staff  955 Feb 18 09:04

 > javac package javax.servlet does not exist
import javax.servlet.*;
^ package javax.servlet.http does not exist
import javax.servlet.http.*;
^ cannot resolve symbol
symbol  : class HttpServlet
location: class HelloServlet
public class HelloServlet extends HttpServlet {
                                   ^ cannot resolve symbol
symbol  : class HttpServletRequest
location: class HelloServlet
   public void doGet(HttpServletRequest request,
                     ^ cannot resolve symbol
symbol  : class HttpServletResponse
location: class HelloServlet
                     HttpServletResponse response)
                     ^ cannot resolve symbol
symbol  : class ServletException
location: class HelloServlet
       throws ServletException, IOException {
6 errors

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message