Embedding a browser in a javafx application using xulrunner and mozswing

Saina <[email protected]>
Newsgroups gmane.comp.mozilla.devel.embedding
Organization http://groups.google.com
Message-ID <e690bf60-1cbd-4ff4-9bdd-5875d572a6b0@k39g2000yqb.googlegroups.com>
Hi,

I am trying to embed a browser in my javafx application.
Version Details are as given below.

Java 1.6, xulrunner 1.9.2, mozswing-2.0beta2,
Windows 32,Netbeans 6.9 and javafx sdk 1.3

Firefox is not installed on my machine.

My program is giving the following error:

Jul 14, 2010 6:17:35 PM org.mozilla.browser.MozillaInitialization
initialize
INFO: Using xul runner dir: D:\xulrunner-sdk\bin
Exception in thread "Mozilla" org.mozilla.xpcom.XPCOMException: The
function "createInstance" returned an error condition  (0x80004002)
        at
org.mozilla.xpcom.internal.XPCOMJavaProxy.callXPCOMMethod(Native
Method)
        at
org.mozilla.xpcom.internal.XPCOMJavaProxy.invoke(XPCOMJavaProxy.java:
143)
        at $Proxy3.createInstance(Unknown Source)
        at org.mozilla.browser.MozillaExecutor
$1.run(MozillaExecutor.java:166)

Jul 14, 2010 6:17:36 PM org.mozilla.browser.XPCOMUtils asyncProxy
SEVERE: failed to create XPCOM proxy
org.mozilla.xpcom.XPCOMException: The function
"getServiceByContractID" returned an error condition  (0x80040154)
        at
org.mozilla.xpcom.internal.XPCOMJavaProxy.callXPCOMMethod(Native
Method)
        at
org.mozilla.xpcom.internal.XPCOMJavaProxy.invoke(XPCOMJavaProxy.java:
143)
        at $Proxy0.getServiceByContractID(Unknown Source)
        at org.mozilla.browser.XPCOMUtils.asyncProxy(XPCOMUtils.java:
116)
        at
org.mozilla.browser.MozillaExecutor.asyncExec(MozillaExecutor.java:
318)
        at
org.mozilla.browser.MozillaExecutor.mozAsyncExec(MozillaExecutor.java:
471)
        at
org.mozilla.browser.MozillaPanel.addNotify(MozillaPanel.java:322)


 I had read some articles about xulrunner installation and xpcom
registration.But its not much clear.Can anyone please guide me
regarding this.Thanks in advance..
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.