I got this DBServlet.java is my Servlet.
it does not fint javax.servlet.*.Should I put in jdk1.4 folders,maybe in
lib or whatever ?!?
thank for your help
DBServlet.java:4: package javax.servlet does not exist
import javax.servlet.*;
^
DBServlet.java:5: package javax.servlet.http does not exist
import javax.servlet.http.*;
^
DBServlet.java:10: cannot resolve symbol
symbol : class HttpServlet
location: class DBServlet
public class DBServlet extends HttpServlet
^
DBServlet.java:23: cannot resolve symbol
symbol : class HttpServletRequest
location: class DBServlet
public void doPost(HttpServletRequest req, HttpServletResponse resp)
^
DBServlet.java:23: cannot resolve symbol
symbol : class HttpServletResponse
location: class DBServlet
public void doPost(HttpServletRequest req, HttpServletResponse resp)
^
DBServlet.java:24: cannot resolve symbol
symbol : class ServletException
location: class DBServlet
throws ServletException,IOException
^
DBServlet.java:31: cannot resolve symbol
symbol : class HttpServletRequest
location: class DBServlet
public void doGet(HttpServletRequest req, HttpServletResponse resp)
^
DBServlet.java:31: cannot resolve symbol
symbol : class HttpServletResponse
location: class DBServlet
public void doGet(HttpServletRequest req, HttpServletResponse resp)
^
DBServlet.java:32: cannot resolve symbol
symbol : class ServletException
location: class DBServlet
throws ServletException,IOException
^
9 errors
----- Original Message -----
From: "Mark Galbreath" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, January 24, 2003 6:43 PM
Subject: Re: [no subject]
If those are the only classes you are going to be using (importing,
extending, implementing). A better idea is to include in your
classpath:
%JAVA_HOME%/lib/tools.jar;%J2EE_HOME/lib/j2ee.jar
What compile error are you getting - class not defined?
Mark
-----Original Message-----
From: Giovanni Di Lembo
Sent: Friday, January 24, 2003 11:32 AM
So I should put this path as classpath when I compile servlets?
----- Original Message -----
From: "Mark Galbreath" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Huh? The servlet classes come with Tomcat. They are at
%CATALINA_HOME%/common/lib/servlet.jar.
Mark
-----Original Message-----
From: Giovanni Di Lembo
Sent: Friday, January 24, 2003 9:27 AM
Where do I put the servlets api in the tomcat trees?
Is it included in jdk1.4?and if so,why I got a compiling error when I
try to
compile my servlets?
________________________________________________________________________
___
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
___________________________________________________________________________
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