Eclipse SWT Browser crash (Linux 64Bit)

谁说我不能喝 提交于 2019-12-01 21:35:04

问题


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!


回答1:


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


来源:https://stackoverflow.com/questions/20639049/eclipse-swt-browser-crash-linux-64bit

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