I think you do not have to change autoexec.bat because
JWS uses it's own classpath .

Just copy this jar(class) file to JavaWebser2.0/lib directory

or set up classpath for your webserver.



-----Original Message-----
From: A mailing list for discussion about Sun Microsystem's Java Servlet
API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of
Spencer Ridder
Sent: Thursday, March 09, 2000 11:38 AM
To: [EMAIL PROTECTED]
Subject: Re: Importing Packages for JavaWebServer


Hi Brian,
        It has been a while since I have worked with the Java Web Server
but I believe I remember how it worked.

The class that you are trying to import must reside within your
classpath. I am guessing that all you need to do is add the class file
to your classpath. You can check what your classpath is set to now by
editing your autoexec.bat file( if you are running Windows 9x)
Often times this variable is never explicitly set and so it takes on a
default value. Which of course will not include the class you are trying
to import.
Look in the README for the JDK 1.x.x 2.x.x. It explains how to set it
explicitly.

Spencer Ridder



brian waller wrote:
>
> Hello to all,
>
> I recently downloaded the com.oreilly.servlet.* Package from
> www.servlets.com.  There is a MultpartRequest class that will work very
nice
> for me in the package.
>
> BUT
>
> The only way I can get it to work is to make the class a sub/embedded
class
> of the servlet that I created.
>
> I can't seem to figure out how to import the package.  Where exactly
should
> the package reside in the JavaWebServer?
>
> I have tried the package in the classes dir and the servlets dir then
adding
> the following code to my servlet that creates an instance of the
> MultipartRequest object.
>
> import com.oreilly.servlet.*;
>
> Each time I compile my servlet I get the following:
> Class com.oreilly.servlet.* not found in import.
>
> Can anyone help?  I guess there is a problem with the classpath or
> environment variables but I can't figure it out.
>
> Thank you,
>
> --brian
> ______________________________________________________
> 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

Reply via email to