Wednesday, 11 November 2009

64-bit Linux + Eclipse Galileo crash - fix

A short one.

I had this problem some time ago, and today I've seen someone else on #eclipse IRC channel to have it. If you are running 64-bit Linux (esp. Gentoo) and Eclipse Galileo and your eclipse keeps crashing with XPCOM error -2147467262, then fear no more. this is what you should do:

  1. turn off all Eclipse instances
  2. delete following files:
    • WORKSPACE/.metadata
    • ~/.mozilla/eclipse
    • ~/.eclipse
  3. add -Dorg.eclipse.swt.browser.XULRunnerPath=/usr/lib64/xulrunner-1.9.1/libxpcom.so to the end of your eclipse.ini file (actual path to your libxpcom.so may be different)
  4. you are done. You may use your Eclipse safely

This tip is based on comments 11 and 12 in this bug report.