Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using WebKit for SWT Browser inside Eclipse plugin

I tried today to use the WebKit as the Browser's underlying renderer for my eclipse plugin but no luck.

I followed the recommended instructions and my current environment is as follows:

  • OS: Windows 7 (x64)
  • Safari installed (in the PATH too)
  • 32 bit SWT (eclipse RCP indigo SR1 32)

added the following line to eclipse.ini

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

Now when I try to instantiate the browser:

Browser b = new Browser(parent, SWT.WEBKIT);
b.setUrl("http://whatismybrowser.com");

I get the following error:

Failed to load the swt-webkit library

Any suggestions?

Thanks.

like image 670
unexplored Avatar asked Jun 17 '26 00:06

unexplored


1 Answers

I got this problem too What you need to do use JVM : 32bit SWT :32 bit

set the safari.exe path in your environment settings , (If you are using older version of Windows)

Else if SWT and JVM are not of same 32 bit it will generate error .

like image 185
Gaurav Singh Avatar answered Jun 21 '26 01:06

Gaurav Singh



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!