most 'experts' recommend against setting the nt environment variable because
it becomes a crutch.  but you are right, there are two classpaths in
question here.  the 'evironment' classpath tells the compiler where to find
the appropriate class files -- that is the problem with the query below.
just set the classpath at the command line, e.g. 'javac
HelloWorldExample.java -classpath ...' and put the path to the servlet.jar
there.  the other classpath is the one that the servlet container will need
when it invokes the compiler, i.e. when it compiles a jsp.  there should be
a configuration file somewhere where you can tell it where servlet.jar is..

hope this helps,
bradley mclain

>From: Vera Permata Sari <[EMAIL PROTECTED]>
>Reply-To: "A mailing list for discussion about Sun Microsystem's Java
>        Servlet API Technology." <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Date: Fri, 24 Mar 2000 11:01:57 +0700
>
>Usually the setting for "usual" classpath and the classpath for servlet are
>different.
>For example, I'm using Windows NT and JRun as my Web Server.
>Even I have defined the classpath in the Windows NT Environment variable,
>still the servlet can't find the classpath, so I have to set it from JRun.
>
>-Vera-
>
>----- Original Message -----
> > >From: neeraj koul <[EMAIL PROTECTED]>
> > >Reply-To: "A mailing list for discussion about Sun Microsystem's Java
> > >        Servlet API Technology." <[EMAIL PROTECTED]>
> > >To: [EMAIL PROTECTED]
> > >Date: Mon, 20 Mar 2000 17:47:28 -0600
> > >
> > >Hi,
> > >
> > >I have downloaded jswdk-1.0.1 from sun site. Following the directions
>in
> > >FAQ.html i created an application for testing servlets
> > >On trying to compile it is unable to loacte even the basic files.The
>trace
> > >is
> > >
> > >vincent% javac HelloWorldExample.java
> > >HelloWorldExample.java:8: Package javax.servlet not found in import.
> > >import javax.servlet.*;
> > >        ^
> > >HelloWorldExample.java:9: Package javax.servlet.http not found in
>import.
> > >import javax.servlet.http.*;
> > >        ^
> > >HelloWorldExample.java:17: Superclass HttpServlet of class
> > >HelloWorldExample not found.
> > >public class HelloWorldExample extends HttpServlet {
> > >
> > >
> > >I have included the java/lib/classes.zip in the CLASSPATH.
> > >Can somebody please give me directions
> > >Any help would really be appreciated
> > >  I am on a alpha machine( OSF1). I have downloaded jswdk-1.0.1 and
>java
> > >1.0.2 JDK.
> > >
> > >Regards
> > >Neeraj Koul
> > >
> >
> >___________________________________________________________________________
> > >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
> >
> > ______________________________________________________
> > 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

______________________________________________________
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

Reply via email to