RCP with SWT.Browser and XULRunner

后端 未结 4 631
感动是毒
感动是毒 2020-12-28 10:27

I\'m developing an RCP application (Windows) with SWT.Browser (SWT.MOZILLA):

Browser browser = new Browser(parent, SWT.MOZILLA);

I

4条回答
  •  余生分开走
    2020-12-28 10:42

    As of Eclipse 3.8 / 4.2 M6 the org.eclipse.swt.browser now supports embedding XULRunner 10.0.x, but you must ship a XULRunner 10 runtime and explicitly point at it as described in the FAQ:

    ...    
        System.setProperty("org.eclipse.swt.browser.XULRunnerPath", "path\to\xulrunner_10"); 
    ...
    

    The XULRunner 10 runtime can be downloaded from ftp.mozilla.org/pub/mozilla.org/xulrunner/releases/10.0/runtimes/

    JavaXPCOM

    Mozilla is not maintaining JavaXPCOM anymore, but as Grant Gayed says:

    The Browser does not require JavaXPCOM in order for it to work, it just exposes it to apps that want to use it themselves through its getWebBrowser() method.

    Linux

    XULRunner 10 will currently not run under Linux because of Mozilla bug 720682.

提交回复
热议问题