相关疑难解决方法(0)

在Java上嵌入XULRunner应用程序

我的目标是让Limewire(JAVA)和Songbird(XULRunner)一起运行.

我认为最好的方法是在JAVA秋千面板内运行XUL应用程序(鸣鸟).还有另外一种方法吗?

是否更好或可能将GUI完全放在XUL中,然后以某种方式访问​​我的JAVA对象?

我该怎么做呢?

谢谢

java embed xul xulrunner

5
推荐指数
1
解决办法
8184
查看次数

Ubuntu中Eclipse/SWT中的Java XULRunner错误

XULRunner有什么问题所以,我有下一个环境:

  • Ubuntu 14.04
  • 已安装XULRunner
  • Eclipse 4.5.2

所以,

    public class Main {
       public static void main(String[] args) {

            System.setProperty("org.eclipse.swt.browser.DefaultType", "mozilla");
            System.setProperty("org.eclipse.swt.browser.XULRunnerPath", "/opt/xulrunner/xulrunner");

            Display display = new Display();
            final Shell shell = new Shell(display);

            Browser webBrowser = new Browser(shell, SWT.MOZILLA);
            GridData grid = new GridData(GridData.FILL_BOTH);
            webBrowser.setLayoutData(grid);
            String graphUrl = "http://google.com";
            webBrowser.setUrl(graphUrl);
       }
    }
Run Code Online (Sandbox Code Playgroud)

但在Eclipse中我看到:

Exception in thread "main" org.eclipse.swt.SWTError: No more handles [Browser style SWT.MOZILLA and Java system property org.eclipse.swt.browser.DefaultType=mozilla are not supported with GTK 3 as XULRunner is not ported for …

java eclipse ubuntu swt xulrunner

3
推荐指数
1
解决办法
3958
查看次数

标签 统计

java ×2

xulrunner ×2

eclipse ×1

embed ×1

swt ×1

ubuntu ×1

xul ×1