Gangmax Blog

MOZILLA_FIVE_HOME error in Eclipse

I got the following error in Eclipse on my Ubuntu 12.04:

1
2
3
4
5
6
Failed to create web browser. The MOZILLA_FIVE_HOME environment variable must be configured to point to your web browser install location. For example:
export MOZILLA_FIVE_HOME = /usr/lib/firefox
Also, MOZILLA_FIVE_HOME must be added to the LD_LIBRARY_PATH variable. For example:
export LD_LIBRARY_PATH = "$MOZILLA_FIVE_HOME":"$LD_LIBRARY_PATH"
More instructions for configuring the embedded browser can be found here:
http://www.eclipse.org/swt/faq.php

A solution from here:

Create a bash file with the content below and run it to start Eclipse:

1
2
3
4
export MOZILLA_FIVE_HOME=”/usr/lib/mozilla/”
export ECLIPSE_HOME=”/usr/local/eclipse”

$ECLIPSE_HOME/eclipse $*

Added@20120628:

This problem seems still existing. Here is another solution from [here][i_url]. The core idea is to add the following line at the end of the “eclipse.ini” file:

1
2
-Dorg.eclipse.swt.browser.XULRunnerPath=/usr/lib/xulrunner
# The "/usr/lib/xulrunner" is the directory where xulrunner is installed on your computer. On my Ubuntu 12.04, it's "/usr/lib/xulrunner".

Comments