Trying to embed gnu.xml.dom.DomDocumentBuilderFactory

Mohsen Saboorian mohsens@gmail.com
Thu Apr 19 19:26:00 GMT 2007


> There is no newInstance() method in DomDocumentBuilderFactory.
Yes, but shouldn't compiler load each class it encounters in the code?
I changed the code to "new DomDocumentBuilderFactory()" but still I
had the problem.

> It is not a bug.  Please read the static linking wiki article pointed to
> by the documentation.  It describes how to work around this situation.
> http://gcc.gnu.org/onlinedocs/gcj/Linking.html#Linking

David, would you please tell me the workaround? I see nothing of any
help for me in that document. my command line looks like this:
gcj -onative.executable -static-libgcj --main=net.sf.X  a.o  b.o  c.o d.o



More information about the Java mailing list