« Return to Thread: Trying to embed gnu.xml.dom.DomDocumentBuilderFactory

Trying to embed gnu.xml.dom.DomDocumentBuilderFactory

by Mohsen Saboorian :: Rate this Message:

Reply to Author | View in Thread

Hi,

Since -static-libgcj doesn't embed classes which are loaded
dynamically using reflection, I manually coded:
DocumentBuilderFactory documentBuilderFactory =
DomDocumentBuilderFactory.newInstance()
so that gcj recognizes gnu.xml.dom.* needed classes and embed them in
my native executable file.

When I run my native file (~40MB with -static-libgcj, ~27Mb without
that), it crashes with a NoClassDefFoundError for
gnu.xml.dom.DomDocumentBuilderFactory.

Is it a bug? I'm using gcj 4.1.2 on Ubuntu 6.10.

Thanks.

 « Return to Thread: Trying to embed gnu.xml.dom.DomDocumentBuilderFactory