Sean's Musings as a Service

Sean's Musings as a Service

Eclipse and MOZILLA_FIVE_HOME issues on Linux

  • Published:
  • categories: linux
  • tags: eclipse, ibm, linux, mozilla, rsa

Have run into this in the past and fought through it, ran into it again this week and did some searching to resolve my issues thought I should actually make a note of what I did this time.

So basically this problem is a conflict of Eclipse SWT and Xulrunner, so if you happen to have a misbehaving combindation like Eclipse 3.4/3.5 and Xulrunner 1.9 you will get MOZILLA_FIVE_HOME errors for various eclipse activities.

Ran across another IBM technote: http://www-01.ibm.com/support/docview.wss?uid=swg21613498

Recommends just downgrading Xulrunner to 1.8.0.4 that pre-dates the conflicts. Easy solution, that can be done by either root or non-root so that is the winner for me.

#!/bin/sh
# http://stackoverflow.com/questions/59895/can-a-bash-script-tell-what-directory-its-stored-in
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

export XUL=/opt/xulrunner/3.6.28
export MOZILLA_FIVE_HOME=${XUL}
export LD_LOAD_LIBRARY=${XUL}
export MY_OPTS="-Dorg.eclipse.swt.browser.UseWebKitGTK=true"

${DIR}/eclipse ${MY_OPTS} $@
Reference: