On my Arch Linux, Eclipse with Google Window Builder/SWT application, I am getting
Exception in thread "main" org.eclipse.swt.SWTError: No more handles [Unknown Mozilla path (MOZILLA_FIVE_HOME not set)]
at org.eclipse.swt.SWT.error(SWT.java:4308)
at org.eclipse.swt.browser.Mozilla.initMozilla(Mozilla.java:1826)
at org.eclipse.swt.browser.Mozilla.create(Mozilla.java:687)
at org.eclipse.swt.browser.Browser.<init>(Browser.java:99)
at octopus.EventSummaryComposite.<init>(EventSummaryComposite.java:33)
at octopus.EventEditingComposite.<init>(EventEditingComposite.java:45)
at octopus.EventManagementController.<init>(EventManagementController.java:31)
at octopus.MainController.<init>(MainController.java:38)
at octopus.MainController.main(MainController.java:85)
I believe I need to install XULrunner or something. But when I install xulrunner
in Arch, I get xulrunner and eclipse are in conflict
. So I tried installing pywebkitgtk
. Then I added -Dorg.eclipse.swt.browser.DefaultType=webkit
to /usr/bin/eclipse
and /usr/share/eclipse/eclipse.ini
not sure which is used. But when I run, I still get the same error. It appears webkit is still not used. How can I fix this?
UPDATE 2
So far I tried installing libwebkit3
. Then added -Dorg.eclipse.swt.browser.UseWebKitGTK=true
to /usr/share/eclipse/eclipse.ini
, I get the same error.
Then I also tried downloading and extracting xulrunner
from mozilla to ~/xulrunner
and adding -Dorg.eclipse.swt.browser.XULRunnerPath=/home/jiewmeng/xulrunner/
to config, still same error...
In Ubuntu just now, I just installed xulrunner
and it worked... I wonder if the config is even used?
UPDATE (Environment & Versions)
- Arch Linux
- GNOME 3
- Eclipse 3.7.2
- SWT 1.3.0/3.7.2 (http://dl.google.com/eclipse/inst/d2wbpro/latest/3.7)
- XULRunner 1.9.2.19 (http://ftp.mozilla.org/pub/mozilla.org/xulrunner/releases/1.9.2.19/)
- Firefox 11 (from pacman)
Let me know if you need other relavent info
UPDATE (Old)
If I change my code to
new Browser(this, SWT.WEBKIT)
I get
Exception in thread "main" org.eclipse.swt.SWTError: No more handles
at org.eclipse.swt.SWT.error(SWT.java:4308)
at org.eclipse.swt.SWT.error(SWT.java:4197)
at org.eclipse.swt.SWT.error(SWT.java:4168)
at org.eclipse.swt.browser.Browser.<init>(Browser.java:103)
at octopus.EventSummaryComposite.<init>(EventSummaryComposite.java:33)
at octopus.EventEditingComposite.<init>(EventEditingComposite.java:45)
at octopus.EventManagementController.<init>(EventManagementController.java:31)
at octopus.MainController.<init>(MainController.java:38)
at octopus.MainController.main(MainController.java:85)
libwebkit
instead oflibwebkit3
on your system and use the WebKit configuration options as before, that has a high success rate. Sorry for the trouble, in any event. – Beachlamarmake install
or otherwise point to it? And, according to the documentation at least, Eclipse 3.7.2 supports newer versions of WebKit, so I don't think that's it. If you keep following the stack traces you receive, you'll get it. – Beachlamar./eclipse -vmargs "-Dorg.eclipse.swt.browser.DefaultType=webkit -Dorg.eclipse.swt.browser.UseWebKitGTK=true"
. I still get mozilla error. It really doesn't appear to be using that config isit? – Alcantarpacman --force -Syu
. I installed all of the packages from here pluslibwebkit
andeclipse
, building a default SWT Application Window. As mentioned, at this point, SWT64 or a 32-bit chroot are most appropriate. I'm still on chat for any other issues. – Beachlamar