Or, since you are using Java2, copy the servlets.jar file from the JSDK
directory to your C:\jdk1.2.2\jre\lib\ext directory and let the new
extension mechanism do the work for you.
(*Chris*)
----- Original Message -----
From: Greg Playle <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, September 11, 1999 8:45 AM
Subject: Re: JSKD 2.1 - Trouble running the "Duke�s Bookstore" example
> Chances are you need to explicitly add the servlet JAR files
> to the classpath. Then, the compiler knows to look inside
> the JAR files for classes.
>
> Either use SYSEDIT or your favorite ASCII editor and add
> something like this:
>
> SET
> CLASSPATH=.;C:\JDK1.2.2\;c:\jsdk2.1\src\javax\servlets;C:\
> JDK1.2.2\LIB\TOOLS.JAR
> SET JAVA_HOME=C:\JDK1.2.2\
>
> On Saturday, September 11, 1999 8:06 AM, Everton de Brito
> Dias [SMTP:[EMAIL PROTECTED]] wrote:
> > Guys and girls,
> >
> > I�ve been studying Java for a week and, at first, I�d like
> > to thank you all
> > for the attention and excuse me for possible "fool
> > questions" or
> > missssspellings.
> >
> > I�m trying to put the "Duke�s bookstore" example to run on
> > JSDK 2.1
> > on Windows 95.
> >
> >
> > The paths I think are the right ones:
> > 1-Compile the sources for the servlets, on the
> webpages/web-
> > inf/servlets
> > directory;
> >
> > 2-run startserver
> >
> > I had trouble on path (1), Compiling the servlets. The
> > messages from javac
> > were:
> >
> > --------------------------------------------------------
> ----
> > ----
> > CatalogServlet.java:21: Package javax.servlet not found in
> > import.
> > import javax.servlet.*;
> > ^
> > CatalogServlet.java:22: Package javax.servlet.http not
> found
> > in import.
> > import javax.servlet.http.*;
> > ^
> > CatalogServlet.java:32: Superclass HttpServlet of class
> > CatalogServlet not
> > found
> > .
> > public class CatalogServlet extends HttpServlet {
> > ^
> > 3 errors
> >
> >
> ------------------------------------------------------------
> > ----
> >
> > The javax classes source files are on the directory
> > c:\jsdk2.1\src\javax\servlets
> >
> > where they were normally installed. (They�re not in the
> > jdk1.2.2\include,
> > and I really don�t consider the possibility of
> > HAVING TO COPY THIS FILES MANNUALLY!).
> >
> >
> >
> > Sorry if this doubt is quite fool and thanks for your
> > attention...
> >
> > Everton :-)
> >
> > ______________________________________________________
> > Get Your Private, Free Email at http://www.hotmail.com
> >
> >
> ____________________________________________________________
> > _______________
> > 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
>
___________________________________________________________________________
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