This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Compiling XML parsers (xerces, Dom4j, etc...)
Bryce McKinlay writes:
> Andrew Haley wrote:
>
> >Bryce McKinlay writes:
> > >
> > > >First, gcj can in fact compile jar files into usable libraries (as we
> > > >all know or have read), but there are limitations which are not clearly
> > > >advertised or documented (at least not in any obvious way).
> > > >
> > > >1) The first limitation is that in order to get working libs from jars
> > > >you have to work with this assumption. The jar can only contain one
> > > >package.
> >
> >No.
> >
> > > Yes, unfortunately this is a well-known limitation of the existing
> > > shared-library naming scheme.
> >
> >All you have to do is link explicitly against the shared library.
> >
> Well, yes, obviously that's the alternative
It is simply untrue to say that the jar can only contain one package.
I don't think that it was obvious to the original poster, or he would
not have posted what he did.
Andrew.