You are not logged in.
I am having problems when using Eclipse SWT and Browser control.
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 controller.EventViewComposite.<init>(EventViewComposite.java:169)
at controller.EventManagementController.<init>(EventManagementController.java:36)
at controller.MainController.<init>(MainController.java:69)
at controller.MainController.main(MainController.java:134)
I believe this is a common problem. I tried installing `libwebkit3` then added
-Dorg.eclipse.swt.browser.UseWebKitGTK=true
to `/usr/share/eclipse/eclipse.ini`
But I still get the same error. Is the config even used?
Then I tried downloading `xulrunner1.9.2` from http://ftp.mozilla.org/pub/mozilla.org/ … /1.9.2.19/. Then added below to config (removing the webkit one)
-Dorg.eclipse.swt.browser.XULRunnerPath=/home/jiewmeng/xulrunner/
Still fails with same error. How do I get SWT Browser to work? Just now in Ubuntu I simply installed `xulrunner` and it worked
I also posted sometime back in StackOverflow http://stackoverflow.com/questions/9695 … er-eclipse
Last edited by jiewmeng (2012-03-21 13:24:53)
Computer Science Student, Web Developer
Offline
Ok I got a solution at my StackOverflow question. It appears that this is a Arch Linux problem?
Edit: To get Google WindowBuilder Pro's copy of SWT's browser widgets working in Arch Linux, I created a VM and stepped through this process with the OP. I was able to reproduce the bug in both the 32- and 64-bit versions of Arch Linux.
It turns out Arch Linux's bindings for libwebkit were insufficient, so I went ahead and built xulrunner-1.9.2.19 from source. After a whole lot of necessary fixups, my make install version just works with Eclipse.
The next step, for anyone willing, is to report this to Arch Linux.
Last edited by jiewmeng (2012-03-26 11:24:09)
Computer Science Student, Web Developer
Offline