Embedding Mozilla in Java App under Linux

"JM" <[email protected]>
Newsgroups gmane.comp.mozilla.devel.java
Organization http://groups.google.com
Message-ID <1165832547.447356.295250__22321.0626551465$1165832721$gmane$org@80g2000cwy.googlegroups.com>
Hi,

Sorry if this is a dumb newby question, ;-)

The document on embedding Mozilla in a Java application says "// Note,
on linux, gtk has to be already initialized for this code to work". Can
anyone tell me how to initialise gtk from Java please? I've tried
installing all sorts of GTK libraries, but to no avail. Presumably
Mozilla has a library somewhere that I can link to? How do I do this
from Java?

I'm running a Suse distribution and have Mozilla and XULRunner
installed. I can run applications by calling xulrunner apllication.ini,
but trying to run from Java gives me a "use g_type_init() prior to this
function" error when I try to use the windowWatcher.openWindow method.

Any help really appreciated.
John
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.