我的目标是让Limewire(JAVA)和Songbird(XULRunner)一起运行.
我认为最好的方法是在JAVA秋千面板内运行XUL应用程序(鸣鸟).还有另外一种方法吗?
是否更好或可能将GUI完全放在XUL中,然后以某种方式访问我的JAVA对象?
我该怎么做呢?
谢谢
XULRunner有什么问题所以,我有下一个环境:
所以,
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 …