I've not had problems archiving multiple Java packages, (including
some with Bean classes and some with ordinary classes).  Try
using the following rules:

    1.  Make sure your package names (i.e. org.abc.proj2) exactly
        match the directory names where the class files live before
        you jar them: (i.e. /org/abc/proj2 on Unix of \org\abc\proj2
        on NT).

    2.  If you are using NT, keep in mind that the classloader uses
         case-sensitive path names, even though DOS-shell access to
         the NT file system is case insensitive.

Charlie

> -----Original Message-----
> From: sriram [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 26, 2000 11:47 AM
> Subject: Jaring beans and non bean files in one jar]
>
>
> Hello,
>
> I am having several EJBs  in an application and I am trying to create an
> application jar.
> I am trying to create a single jar that has 3 packages(beans and non
> beaans)
> bundled in it. But I am not able to succeed.
>
> The scenario is I have packages of 3 projects like
>
> org.abc.proj1.... - stored in /java/proj/proj1/classes
> (the package org.abc.proj1 is stored like
> /java/proj/proj1/org/abc/proj1/..... )
>
> org.abc.proj2.... - stored in /java/proj/proj2/classes
> org.abc.proj3.... - stored in /java/proj/proj3/classes
>
> now when i m trying to bundle all these packages in one jar, i m getting
> the
> following exception, after it adds all those classes in the first proj1
> directory...
>
> adding :org/ java.util.zip. ZipException : duplicate entry org/ at
> java.util.zip.zipoutputstream.putnextentry....
>
> however it adds the first projects classes successfully, but then it
> fails while
> adding the second projects classes which also has the pkg name beginign
> with
> org/abc
>
> the jar command that i gave is
>
> jar -cvmf mymanifest bundle.jar -C /java/proj/proj1/classes . -C
> /java/proj/proj2/classes . -C /java/proj/proj3/classes .
>
> can any one pls help me its very urgent.
>
> Also is there a Jar-Interest group.?
>
> thanks
> sriram
>

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to