Hi Bruce,
YOu dont have to set the CLASSPATH to the dir. containing the
servlet.jar file but also have the Servlet.jar file mentioned along with it.
Something like this :
set CLASSPATH=c:\jsdk1.1\lib\servlet.jar;.;
bye,
Jiger
>From: Bruce Knipe <[EMAIL PROTECTED]>
>Reply-To: "A mailing list for discussion about Sun Microsystem's Java
> Servlet API Technology." <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: jar file question
>Date: Thu, 24 Aug 2000 09:58:12 -0700
>
>I've been trying to compile a servlet that depends on the contents of
>servlet.jar.
>
>When I set my CLASSPATH to the directory that contains servlet.jar file
>I get import errors stating :
>--------------------
>javac bruce.java
>bruce.java:5: Package javax.servlet not found in import.
>import javax.servlet.*;
>--------------------
>
>When I unpack the jar file I can compile without errors.
>
>Now my question is: Is this the way things are supposed to work or is
>there some way for javac to get the classes out of the jar without
>unpacking them?
>
>If not then I have a problem because when I unpack some .jar files I get
>"Can't create directory" errors and I'm likely going to run into all
>kinds of problems later on.
>
>-Bruce
>
>___________________________________________________________________________
>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 E-mail from MSN Hotmail 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