How to install XULRunner for Eclipse

半世苍凉 提交于 2019-11-28 13:31:11

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

I'm using Eclipse Kepler on Debian Wheezy.

This is how I circunvented the trouble:

  1. Make sure you don't have any package named xulrunner:

    $ dpkg --list | fgrep xulrunner

  2. Install xulrunner-10.0 ( DO NOT install xulrunner-17.0 )

    $ apt-get install xul-runner-10.0

  3. Insert the following line in your eclipse.ini file:

    -Dorg.eclipse.swt.browser.XULRunnerPath=/usr/lib/xulrunner-10.0

  4. Restart Eclipse. It should pick up the new configuration and should work as expected.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!