Hi Jannik,

You will need to have the servlet classes in your classpath
both when you compile and at runtime.  If you are using Java 2
for both compilation and runtime then you can take advantage of
the extensions directory.  Look for the servlet class jar in
your JSDK distribution (servlet.jar) and put a copy of it in the
[JAVA_HOME]/jre/lib/ext directory and it will automagically use
it at compile and runtime.  This is much easier than comfirming
that your CLASSPATH is correct everytime.  Be warned, however,
that this model makes it difficult to use more than one version
of the servlet API with the same VM.

Good luck,
Sam
--
Senior Software Engineer
WebLogic Applications Group
[EMAIL PROTECTED]

> Hi there,
> I'm trying to get a grib on servlet programming, but my very first servlet
> won't compile because the javax classes is not found.
>
> I have java1.2 and jsdk2.1 and I thought that would be enough.
> What do need
> in my classpath? I guess my problem is a missing path.
>
> Thanx in advance,
> Jannik Hendriksen

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to