Bruno Carlin

Aptana Studio/Eclipse and Xulrunner

Since a few months, I encountered an annoying error in Aptana Studio and Eclipse 3.7 (the autonomous packages, not the packages from the repositories) whenever I tried to do a git or hg action.

I could live without until now, but today, it was really bothering me.

The error is:

Unhandled event loop exception
No more handles [Unknown Mozilla path (MOZILLA_FIVE_HOME not set)]

The log file showed the following backtrace:

!ENTRY org.eclipse.ui 4 0 2011-12-16 17:17:30.825
!MESSAGE Unhandled event loop exception
org.eclipse.swt.SWTError: No more handles [Unknown Mozilla path (MOZILLA_FIVE_HOME not set)]
    at org.eclipse.swt.SWT.error(
    at org.eclipse.swt.browser.Mozilla.initMozilla(
    at org.eclipse.swt.browser.Mozilla.create(
    at org.eclipse.swt.browser.Browser.<init>(
    at com.aptana.git.ui.internal.actions.CommitDialog.createDiffArea(
    at com.aptana.git.ui.internal.actions.CommitDialog.createDialogArea(


    at org.eclipse.equinox.launcher.Main.invokeFramework(
    at org.eclipse.equinox.launcher.Main.basicRun(
    at org.eclipse.equinox.launcher.Main.main(

To make it short, after having read a lot of posts about [this](< problem, it seemed it was enough to give the path to Xulrunner to Aptana.

On my Arch Linux, it was

export MOZILLA_FIVE_HOME=/usr/lib/xulrunner-8.0

Trying to start Aptana Studio, I had a new error. It simply stated

XPCOM error -2147467261

The solution is that Aptana Studio cannot work with the version of Xulrunner in Arch LinuX repositories because it is too recent.

To solve this problem, I had to install xulrunner 1.9.2 from AUR:

yaourt -S xulrunner192

The PKGBUILD was broken this morning and ended in a 404 Error when fetching sources. If you have the same problem, here is an updated PKGBUILD <>__

Finally, I put


at the end of the AptanaStudio3.ini file in the Aptana Studio folder. For the package in the Arch Linux repositories, this file is /usr/share/aptana/AptanaStudio3.ini.