On Fri, 2002-01-25 at 16:40, mike dizon wrote:
> Hello,
>
> I'm now working in a Linux environment. I am having problems compiling my
> servlets. It is telling me that the javax.servlet package can not be found.
> Can anyone tell me why this is happening? I am quite sure that I have the
> J2EE SDK installed v. 1.3.1. Do I need to install the servlet packages
> separatley?
Yes, the servlet classes are not contained within the SDK. If you have
installed Tomcat (jakarta.apache.org) the servlet classes are contained
within a jar file at $TOMCAT_HOME/common/lib/servlet.jar (for v4, lib
and common should be swapped for v3, I think)
You need to put this in your classpath:
setenv CLASSPATH ${CLASSPATH}:${TOMCAT_HOME}/common/lib/servlet.jar (for
(t)csh)
or
export CLASSPATH={CLASSPATH}:${TOMCAT_HOME}/common/lib/servlet.jar (for
(ba)sh)
HTH
Rob
--
______________________________________________________________
| o o ^ |Robert Horton --- [EMAIL PROTECTED]
| | / \ |School of Informatics
| \___/ / o \ |University of Wales, Bangor
| / o \|http://www.sees.bangor.ac.uk/~robh
|_______/_______|______________________________________________|
___________________________________________________________________________
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