How to get Eclipse SWT Browser component running on Ubuntu 11.04 (Natty Narwhal) with Webkit?

后端 未结 4 1706
情话喂你
情话喂你 2020-12-25 08:46

I use the SWT Browser control in my Eclipse RCP application. On Linux Ubuntu 10.10 this depends on the user having installed xulrunner-1.9.2. This works fine.

Howeve

4条回答
  •  天涯浪人
    2020-12-25 09:36

    For Eclipse Juno SR1 (4.2 SR1) running on Ubuntu 12.04, the following worked for me:

    1. Install the libwebkit package: sudo apt-get install libwebkitgtk-3.0-0
    2. Install the libwebkit jni wrapper: sudo apt-get install libswt-webkit-gtk-3-jni
    3. Set the DefaultType and UseWebKitGTK properties (I did it by adding the following to my eclipse.ini file):

       -Dorg.eclipse.swt.browser.DefaultType=webkit
       -Dorg.eclipse.swt.browser.UseWebKitGTK=true
      

提交回复
热议问题