How to install XULRunner for Eclipse

前端 未结 2 706
小鲜肉
小鲜肉 2020-12-11 17:10

I\'m using the SWT browser widget to develop an application in Java with Eclipse (\"Kepler\").

Now I want to use the Mozilla API and downl

2条回答
  •  北海茫月
    2020-12-11 17:26

    SWT is not supporting 'latest' XULRunner.
    See Bug 327696 – [Browser] implement support for xulrunner >= 4.0

    See also The SWT FAQ, Q: How do I specify the default type of native renderer that is used by the Browser? or Q: How do I explicitly use Mozilla as the Browser's underlying renderer? or so.

    For example,

    1. Download the last one which is available on eclipse from http://ftp.mozilla.org/pub/mozilla.org/xulrunner/releases/10.0.4esr/sdk/
    2. Extract it to C:\
    3. Edit your app's Run Configuration->Arguments->VM Arguments, add following argument. -Dorg.eclipse.swt.browser.XULRunnerPath=C:\xulrunner

提交回复
热议问题