在Eclipse插件中将WebKit用于SWT浏览器 [英] Using WebKit for SWT Browser inside Eclipse plugin

查看:76
本文介绍了在Eclipse插件中将WebKit用于SWT浏览器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我今天尝试使用WebKit作为我的eclipse插件的浏览器基础渲染器,但是没有运气.

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:

  • 操作系统:Windows 7(x64)
  • 已安装Safari(也在PATH中)
  • 32位SWT(Eclipse RCP靛蓝SR1 32)

将以下行添加到eclipse.ini

added the following line to eclipse.ini

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

-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");

我收到以下错误:

无法加载swt-webkit库

Failed to load the swt-webkit library

有什么建议吗?

谢谢.

推荐答案

我也遇到了这个问题您需要使用的东西JVM:32位SWT:32位

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

在您的环境设置中设置safari.exe路径(如果您使用的是Windows的较早版本)

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

否则,如果SWT和JVM的32位不一致,则会生成错误.

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

这篇关于在Eclipse插件中将WebKit用于SWT浏览器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆