Setting your classpath:
If you run Tomcat from a DOS console window, before running Tomcat type:
set CLASSPATH=%CLASSPATH%;YourServletDirectoy
where 'YourServletDirectoy' the full path of the directory were you put your
servlets.
In that way add YourServletDirectoy to the existing CLASSPATH ( if not
existed, this statement will create it).
If you run Tomcat through Windows explorer, you should add the line above to
tomcat.bat file at %TOMCAT_HOME%\bin
directory. You can add it as the first line in this file.
Actually, you can add this line also if you run Tomcat from the DOS console
window.
Eitan
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, June 21, 2001 1:46 PM
> To: [EMAIL PROTECTED]
> Subject: RE: Servlet not in webapps directory
>
>
> >
> > In order that it will work the d:/xx/yy/zz/webpages/
> directory should be
> > in
> > the classpath variable before running Tomcat,
> > so Tomcat can find your servlet.
> >
> > Another way, and actually the standard one, is to create
> WEB-INF/classes
> > directory under d:/xx/yy/zz/webpages/
> > and put there your servlets. This directory is
> automatically added to the
> > classpath of Tomcat, and you do not
> > need to add anything.
> >
> > You can look at the webapps directory that comes with
> Tomcat installation,
> > the servlets examples are in this
> > exact structure.
> Yes, that's what I've just discovered, but I would like
> Tomcat not to go in
> WEB-INF/classes/ but where I want, and I don't know exactly
> where configuring
> the classpath and how...
>
> Thanx for all and excuse me if I insist, but I want to be
> sure of what I
> do... ;o)
>
> --
> Sent through GMX FreeMail - http://www.gmx.net
>