Bruce:
I am not a hundred percent sure of this, but try setting your classpath to the
jar "file" iteself; eg: "/blah/blahblah/servlet.jar".. I *think* the jar file
is thought of as a directory. Anyways, since it shouldnt take long, it's
probably worth a try..!
Geeta

Bruce Knipe wrote:

> 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

___________________________________________________________________________
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