如何安装XULRunner for Eclipse [英] How to install XULRunner for Eclipse
问题描述
我正在使用 SWT浏览器小部件,使用 Eclipse (Kepler)开发Java 中的应用程序。
I'm using the SWT browser widget to develop an application in Java with Eclipse ("Kepler").
现在我想使用Mozilla API,并从本网站下载XULRunner的最新的 sdk : http://ftp.mozilla.org/pub/mozilla.org/xulrunner/releases/latest/
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/
如何让Eclipse使用XULRunner ,以便我可以使用以下代码行?
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不支持最新XULRunner。
请参阅错误327696 - [浏览器]实现对xulrunner> = 4.0的支持
SWT is not supporting 'latest' XULRunner.
See Bug 327696 – [Browser] implement support for xulrunner >= 4.0
另请参见SWT常见问题, 问:如何指定浏览器使用的本机渲染器的默认类型? a>或问:我如何显式地使用Mozilla作为浏览器的底层渲染器?例如,
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,
- 下载最新的可用eclipse从
http:// ftp .mozilla.org /酒吧/ mozilla.org / XULRunner的/重租赁/ 10.0.4esr / sdk / - 将其解压缩到C:\
- 编辑您的应用程序的运行配置 - >参数 - > VM参数,添加以下参数。
-Dorg.eclipse.swt.browser.XULRunnerPath = C:\xulrunner
这篇关于如何安装XULRunner for Eclipse的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!