我在Eclipse RCP应用程序中使用SWT Browser控件.在Linux Ubuntu 10.10上,这取决于用户安装了xulrunner-1.9.2.这很好用.
但是,在Ubuntu 11.04上,我发现它默认使用xulrunner-2.0.SWT浏览器不支持此功能.见http://bugs.eclipse.org/bugs/show_bug.cgi?id=327696和http://bugs.eclipse.org/bugs/process_bug.cgi
因此,而不是要求用户安装xulrunner-1.9.2我想让SWT浏览器按照SWT FAQ上的说明运行WebKitGTK - http://www.eclipse.org/swt/faq.php#browserwebkitgtk
我根本无法工作.我如何实现"WebKitGTK 1.2.0或更新版必须在库加载路径中"?
任何帮助非常感谢
在我的Arch Linux,Eclipse上使用Google Window Builder/SWT应用程序,我得到了
Exception in thread "main" org.eclipse.swt.SWTError: No more handles [Unknown Mozilla path (MOZILLA_FIVE_HOME not set)]
at org.eclipse.swt.SWT.error(SWT.java:4308)
at org.eclipse.swt.browser.Mozilla.initMozilla(Mozilla.java:1826)
at org.eclipse.swt.browser.Mozilla.create(Mozilla.java:687)
at org.eclipse.swt.browser.Browser.<init>(Browser.java:99)
at octopus.EventSummaryComposite.<init>(EventSummaryComposite.java:33)
at octopus.EventEditingComposite.<init>(EventEditingComposite.java:45)
at octopus.EventManagementController.<init>(EventManagementController.java:31)
at octopus.MainController.<init>(MainController.java:38)
at octopus.MainController.main(MainController.java:85)
Run Code Online (Sandbox Code Playgroud)
我相信我需要安装XULrunner或其他东西.但是当我安装xulrunner在Arch中时,我得到了xulrunner and eclipse are in conflict.所以我试着安装pywebkitgtk.然后我说-Dorg.eclipse.swt.browser.DefaultType=webkit要/usr/bin/eclipse和/usr/share/eclipse/eclipse.ini不知道哪个被使用.但是当我跑步时,我仍然得到同样的错误.似乎webkit仍未使用.我怎样才能解决这个问题?
更新2
到目前为止我尝试安装libwebkit3.然后添加-Dorg.eclipse.swt.browser.UseWebKitGTK=true到/usr/share/eclipse/eclipse.ini,我得到了同样的错误.
然后我也尝试下载并解压缩xulrunner从Mozilla浏览器,以~/xulrunner和添加-Dorg.eclipse.swt.browser.XULRunnerPath=/home/jiewmeng/xulrunner/到配置,还是同样的错误......
刚刚在Ubuntu中,我刚刚安装xulrunner并且工作正常......我想知道配置是否被使用?
更新(环境和版本)