Fixing annoying MOZILLA_FIVE_HOME errors

If you are having problems with SWT crashing because it can’t find MOZILLA_FIVE_HOME on Linux, make sure that you have xulrunner installed, check that it 32-bit or 64-bit to match the version of SWT that causes the error and add

MOZILLA_FIVE_HOME=/usr/lib/<path-to-xulrunner>

to your .bash_profile file.

For example, on the 64-bit version of Fedora 14, tools from IBM Rational will throw this type of error because they run on a 32-bit JVM with a 32-bit SWT. Running

yum install xulrunner.i686

and setting

MOZILLA_FIVE_HOME=/usr/lib/xulrunner-1.9.2

in .bash_profile fixes the problem.

Advertisements

Author: Jay Jay Billings

I'm a physicist with a serious addiction to computing. Most days you can find my bumming around ORNL and Twitter.