问题描述
我有一个eclipse项目,它使用eclipse SWT的webbrowser,它在Windows日食中运行顺利。我共享该项目(通过SVN)并尝试在我的64位Linux系统上运行它。我下载了一个稳定的swt版本的64位linux,并将其导入到我的工作区。但是当我尝试启动swt-webbrowser,我得到这个错误: p>
(SWT:2882):Gtk-CRITICAL **:IA__gtk_window_group_remove_window:assertion'window-> group == window_group'failed
,浏览器不启动。
eclipse-bug讨论,但我真的不明白我怎么能修复它!
我有同样的问题,最后遇到,说明你可以通过在你的eclipse.ini文件中添加几个参数来修复它。
首先,确保您的系统上安装了 xulrunner
包。然后将以下两行添加到eclipse.ini :
-Dorg.eclipse.swt.browser .DefaultType = mozilla
-Dorg.eclipse.swt.browser.XULRunnerPath = / usr / bin / xulrunner
如果这不起作用,可以通过添加此行来尝试WebKit:
-Dorg.eclipse。 swt.browser.UseWebKitGTK = true
I have a eclipse project that uses the webbrowser from eclipse SWT which runs smoothly on my windows eclipse. I share the project (via SVN) and try to run it on my 64 Bit Linux system. I downloaded a stable swt version for 64 bit linux and imported it into my workspace.
but when i try to start the swt-webbrowser, i get this error:
(SWT:2882): Gtk-CRITICAL **: IA__gtk_window_group_remove_window: assertion 'window->group == window_group' failed
and the browser doesnt start.
It fits the eclipse-bug-discussion here but i dont really understand how I can fix it!
I had the same problem and finally came across this little gem that explains you can fix it by adding a couple of parameters to your eclipse.ini file.
Firstly, ensure that the xulrunner
package is installed on your system. Then add the following two lines to eclipse.ini:
-Dorg.eclipse.swt.browser.DefaultType=mozilla
-Dorg.eclipse.swt.browser.XULRunnerPath=/usr/bin/xulrunner
If this doesn't work, you can try WebKit by adding this line instead:
-Dorg.eclipse.swt.browser.UseWebKitGTK=true
这篇关于Eclipse SWT浏览器崩溃(Linux 64Bit)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!