This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Trying to embed gnu.xml.dom.DomDocumentBuilderFactory
- From: "Mohsen Saboorian" <mohsens at gmail dot com>
- To: "Andrew Haley" <aph-gcc at littlepinkcloud dot com>
- Cc: java at gcc dot gnu dot org
- Date: Wed, 9 May 2007 09:34:41 +0330
- Subject: Re: Trying to embed gnu.xml.dom.DomDocumentBuilderFactory
- References: <2251114e0704191053n2f1b618exbf6d412bf7e3493a@mail.gmail.com> <2251114e0704210625p482e8b5nc5ebe5cb8efd4330@mail.gmail.com> <17962.4462.143617.221853@zebedee.pink> <2251114e0704210720g3488d4f5kb971d4008b6ff23a@mail.gmail.com> <17962.8493.190777.858780@zebedee.pink> <2251114e0704210746n7d7745a5hd913e92d8627bb21@mail.gmail.com> <462A2D0C.2000505@avtrex.com> <17962.19414.859986.73681@zebedee.pink> <2251114e0704212309u39539788r631323ad0b739ed2@mail.gmail.com> <17963.12774.150754.72975@zebedee.pink>
On 4/22/07, Andrew Haley <aph-gcc@littlepinkcloud.com> wrote:
Mohsen Saboorian writes:
> On 4/21/07, Andrew Haley <aph@littlepinkcloud.com> wrote:
> > Alternatively, perhaps you could link explicitly against all the XML
> > object files.
>
> Thanks for the help.
>
> I'll give scripts/makemake.tcl a try and tell you about the result ASAP.
>
> If I understand correctly you mean that currently it is possible to
> explicitly link my app with XercesImpl object file. I tried XercesImpl
> earlier and it doesn't work (NoClassDefFoundError for xerces class
> DocumentBuilderFactoryImpl if I'm correct).
Assuming you want to use Xerces, yes. I think you're wrong to say
that doing so doesn't work. I'm certain that it does help, it just
isn't sufficient.
Andrew.
Andrew, I tried again to compile my app with xercesImpl, hardcoding:
DocumentBuilderFactory documentBuilderFactory =
new org.apache.xerces.jaxp.DocumentBuilderFactoryImpl();
When I make binary file with -static-libgcj option executable file
cannot start: java.lang.Class.initializeClass complains
java.lang.NoClassDefFoundError: org....DocumentBuilderFactoryImpl.
Removing -static-libgcj results in an executable file which starts
with no problem (and I'm confident that it uses xerces as xml parser).
Now what should I do to have xercesImpl sufficed?
About scripts/makemake.tcl, I had no chance to run this script.
Although I downloaded source package for gcj (on Edgy), I found not
such file.
Are these line supposed to be present in future releases of gcj?
set package_map(gnu/xml/util) bc
set package_map(javax/xml) bc
Thanks,
Mohsen.