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 downloaded the latest sdk from XULRunner from this site: http://ftp.mozilla.org/pub/mozilla.org/xulrunner/releases/latest/
How can I tell Eclipse to use XULRunner so I can use the following code line?
browser = new Browser(shell, SWT.MOZILLA);
Any suggestions on the same are highly appreciated.
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,
I'm using Eclipse Kepler on Debian Wheezy.
This is how I circunvented the trouble:
Make sure you don't have any package named xulrunner:
$ dpkg --list | fgrep xulrunner
Install xulrunner-10.0 ( DO NOT install xulrunner-17.0 )
$ apt-get install xul-runner-10.0
Insert the following line in your eclipse.ini file:
-Dorg.eclipse.swt.browser.XULRunnerPath=/usr/lib/xulrunner-10.0
Restart Eclipse. It should pick up the new configuration and should work as expected.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With