Community
Participate
Working Groups
Build Identifier: Eclipse 3.6.2 Browser component does not work with xulrunner >= 2.0 on Linux. Is it possible to support this version please? Reproducible: Always
For Eclipse 3.7 the default Browser renderer is WebKitGTK, which should be found on any Linux distro that's modern enough to only have a XULRunner with version >= 2.x. Marking as a dup of bug 327696. *** This bug has been marked as a duplicate of bug 327696 ***
(In reply to comment #1) > For Eclipse 3.7 the default Browser renderer is WebKitGTK, which should be > found on any Linux distro that's modern enough to only have a XULRunner with > version >= 2.x. > > Marking as a dup of bug 327696. > > *** This bug has been marked as a duplicate of bug 327696 *** I downloaded Ubuntu 11.04, installed the latest nightly build of Eclipse 3.7 and no dice. Does an end user have to take extra steps to get this working? And of course this begs the question...what about all those pre-3.7 Eclipse-based RCP apps out there?
This is the stack trace I get on Ubuntu 11.04 with Eclipse Version: 3.7.0 Build id: I20110425-1800 when opening the Internal Web Browser View. Am I missing something? No more handles [MOZILLA_FIVE_HOME='/usr/lib/xulrunner-addons'] (java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons: /home/phillipus/Desktop/eclipse3.7/configuration/org.eclipse.osgi/bundles/155/1/.cp/libswt-mozilla-gtk-3730.so: libxpcom.so: cannot open shared object file: No such file or directory no swt-mozilla-gtk in java.library.path /home/phillipus/.swt/lib/linux/x86/libswt-mozilla-gtk-3730.so: libxpcom.so: cannot open shared object file: No such file or directory Can't load library: /home/phillipus/.swt/lib/linux/x86/libswt-mozilla-gtk.so ) org.eclipse.swt.SWTError: No more handles [MOZILLA_FIVE_HOME='/usr/lib/xulrunner-addons'] (java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons: /home/phillipus/Desktop/eclipse3.7/configuration/org.eclipse.osgi/bundles/155/1/.cp/libswt-mozilla-gtk-3730.so: libxpcom.so: cannot open shared object file: No such file or directory no swt-mozilla-gtk in java.library.path /home/phillipus/.swt/lib/linux/x86/libswt-mozilla-gtk-3730.so: libxpcom.so: cannot open shared object file: No such file or directory Can't load library: /home/phillipus/.swt/lib/linux/x86/libswt-mozilla-gtk.so ) at org.eclipse.swt.SWT.error(SWT.java:4303) at org.eclipse.swt.browser.Mozilla.initMozilla(Mozilla.java:1820) at org.eclipse.swt.browser.Mozilla.create(Mozilla.java:672) at org.eclipse.swt.browser.Browser.<init>(Browser.java:96) at org.eclipse.ui.internal.browser.BrowserViewer.<init>(BrowserViewer.java:225) at org.eclipse.ui.internal.browser.WebBrowserView.createPartControl(WebBrowserView.java:48)
I'm afraid I'm finding this enormously frustrating. Even a morsel of a hint on how to get this working would be much appreciated. The SWT FAQ says: "In Eclipse/SWT 3.7 and newer the Browser attempts to use WebKitGTK for all SWT.NONE-style Browsers created on GTK. For this to succeed, WebKitGTK 1.2.0 or newer must be in the library load path. Examples of Linux distros that meet this requirement by default include Red Hat Enterprise Linux 6 and Ubuntu 10.04. Linux installations that do not meet this requirement will fall back to using Mozilla for SWT.NONE-style Browsers." I'm using the 32-bit distro of Ubuntu 11.04. How do I set the "library load path" to "WebKitGTK 1.2.0 or newer"?
There shouldn't be any additional steps required. There's a similar problem with the latest Fedora 15 beta, so I'm wondering if swt's attempt to use the latest WebKitGTK is failing for some reason. We'll have a Fedora 15 beta available soon to investigate on, and it's likely that the problem there is the same problem that you're seeing. To follow its progress see bug 343454. A workaround that could be used in the meantime is to download and install ( https://developer.mozilla.org/en/XULRunner_1.9.2_Release_Notes ) a XULRunner release < 2.0 on your machine, such as XULRunner 1.9.2.x.