Trying to embed gnu.xml.dom.DomDocumentBuilderFactory

Mohsen Saboorian mohsens@gmail.com
Wed May 9 06:04:00 GMT 2007


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.


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /