That's an interesting thought, having the .zip serve double duty.  Is it
possible
currently for that to work?  Specifically, I know a class can be located at
runtime from inside a .jar, but can it be located from a .jar which is in a
.jar?
If not currently, then does that imply a change to the class loader?

I am wondering about this as I have been looking at the sevlet 2.2 web
descriptor
which contains WEB-INF/lib/<something>.jar and it might be nice to get
around expanding the .war to allow runtime access to the contained .jar files.
Maybe it's a wild thought...(and certainly in a area in which I am not expert
:-)

Jason Hunter wrote:

> Tom John wrote:
>
> > I downloaded the above package and set the class path to it.( ie
> > classpath=c:\servletprogramming\cos.zip)
>
> That isn't working because cos.zip contains many things including
> cos.jar, which is the actual archive you need in your classpath.
> (Though now I'm thinking, why not have the zip serve double duty?)
>
> > What's wrong, then I unzip the above package and put it in the
> > samedirectory
> > with the Mailservlet.java
> > file But still it gives the same Error.
>
> You'll need to add cos.jar explicitly to your server's classpath.
>
> -jh-
>
> --
> Jason Hunter
> [EMAIL PROTECTED]
> Book:    http://www.servlets.com/book
> 2.0 to 2.1: http://www.javaworld.com/jw-12-1998/jw-12-servletapi.html
> 2.1 to 2.2: http://www.javaworld.com/jw-10-1999/jw-10-servletapi.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
begin:vcard
n:Stevens;Gael
x-mozilla-html:TRUE
adr:;;;;;;
version:2.1
email;internet:[EMAIL PROTECTED]
fn:Gael Stevens
end:vcard

Reply via email to