title: SWT Browser & Eclipse
body: <p>On my Arch Linux, Eclipse with Google Window Builder/SWT application, I am getting </p>
  
  <pre><code>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.&lt;init&gt;(Browser.java:99)
      at octopus.EventSummaryComposite.&lt;init&gt;(EventSummaryComposite.java:33)
      at octopus.EventEditingComposite.&lt;init&gt;(EventEditingComposite.java:45)
      at octopus.EventManagementController.&lt;init&gt;(EventManagementController.java:31)
      at octopus.MainController.&lt;init&gt;(MainController.java:38)
      at octopus.MainController.main(MainController.java:85)
  </code></pre>
  
  <p>I believe I need to install XULrunner or something. But when I install <code>xulrunner</code> in Arch, I get <code>xulrunner and eclipse are in conflict</code>. So I tried installing <code>pywebkitgtk</code>. Then I added <code>-Dorg.eclipse.swt.browser.DefaultType=webkit</code> to <code>/usr/bin/eclipse</code> and <code>/usr/share/eclipse/eclipse.ini</code> 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?</p>
  
  <p><strong>UPDATE 2</strong></p>
  
  <p>So far I tried installing <code>libwebkit3</code>. Then added <code>-Dorg.eclipse.swt.browser.UseWebKitGTK=true</code> to <code>/usr/share/eclipse/eclipse.ini</code>, I get the same error. </p>
  
  <p>Then I also tried downloading and extracting <a href="http://ftp.mozilla.org/pub/mozilla.org/xulrunner/releases/1.9.2.19/" rel="noreferrer"><code>xulrunner</code> from mozilla</a> to <code>~/xulrunner</code> and adding <code>-Dorg.eclipse.swt.browser.XULRunnerPath=/home/jiewmeng/xulrunner/</code> to config, still same error... </p>
  
  <p>In Ubuntu just now, I just installed <code>xulrunner</code> and it worked... I wonder if the config is even used? </p>
  
  <p><strong><a href="https://bbs.archlinux.org/viewtopic.php?pid=1075523" rel="noreferrer">Arch Linux Question</a></strong></p>
  
  <p><strong>UPDATE (Environment &amp; Versions)</strong></p>
  
  <ul>
  <li>Arch Linux</li>
  <li>GNOME 3</li>
  <li>Eclipse 3.7.2</li>
  <li>SWT 1.3.0/3.7.2 (http://dl.google.com/eclipse/inst/d2wbpro/latest/3.7)</li>
  <li>XULRunner 1.9.2.19 (http://ftp.mozilla.org/pub/mozilla.org/xulrunner/releases/1.9.2.19/)</li>
  <li>Firefox 11 (from pacman)</li>
  </ul>
  
  <p>Let me know if you need other relavent info </p>
  
  <p><strong>UPDATE (Old)</strong></p>
  
  <p>If I change my code to </p>
  
  <pre><code>new Browser(this, SWT.WEBKIT)
  </code></pre>
  
  <p>I get </p>
  
  <pre><code>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.&lt;init&gt;(Browser.java:103)
      at octopus.EventSummaryComposite.&lt;init&gt;(EventSummaryComposite.java:33)
      at octopus.EventEditingComposite.&lt;init&gt;(EventEditingComposite.java:45)
      at octopus.EventManagementController.&lt;init&gt;(EventManagementController.java:31)
      at octopus.MainController.&lt;init&gt;(MainController.java:38)
      at octopus.MainController.main(MainController.java:85)
  </code></pre>