Eclipse Ganymede startup problem in Ubuntu : org.eclipse.swt.SWTError: XPCOM erro July 11, 2008
Posted by sandakith in Eclipse.trackback
Here is the problem as reported in the /.metadata/.log file
==================================================
org.eclipse.swt.SWTError: XPCOM error -2147467262
at org.eclipse.swt.browser.Mozilla.error(Mozilla.java:1597)
at org.eclipse.swt.browser.Mozilla.setText(Mozilla.java:1820)
at org.eclipse.swt.browser.Browser.setText(Browser.java:733)
at org.eclipse.ui.internal.intro.impl.presentations.BrowserIntroPartImplementation.generateContentForPage(BrowserIntroPartImplementation.java:252)
at org.eclipse.ui.internal.intro.impl.presentations.BrowserIntroPartImplementation.dynamicStandbyStateChanged(BrowserIntroPartImplementation.java:451)
at org.eclipse.ui.internal.intro.impl.presentations.BrowserIntroPartImplementation.doStandbyStateChanged
-Dorg.eclipse.swt.browser.XULRunnerPath=/dev/nul
==================================================
Here is how I solved the issue in Ubunty Hardy Harron
sudo apt-get install xulrunner
# Include this in the .bachrc
export MOZILLA_FIVE_HOME=/usr/lib/xulrunner
export LD_LIBRARY_PATH=$MOZILLA_FIVE_HOME:$LD_LIBRARY_PATH
and for safety also download the SWT binaries for Linux. Installation procedure:
* unpack the archive: swt-*-linux-gtk.zip
* copy libswt*.so to
%JAVA_HOME%/jre/lib/i386, (%JAVA_HOME% is the folder where JRE is
installed on your system; e.g.: opt/jdk1.5._07),
* copy swt.jar to %JAVA_HOME%/jre/lib/ext
==================================================
sudo apt-get install xulrunner
append to eclipse.ini
-Dorg.eclipse.swt.browser.XULRunnerPath=/usr/lib/xulrunner/xulrunner
voila!!!
I run the 64 bit version of ubuntu and downloaded the swt-libraries linux x86_64 bit from here :
http://download.eclipse.org/eclipse/downloads/drops/R-3.3.2-200802211800/download.php?dropFile=swt-3.3.2-gtk-linux-x86_64.zip
However, after unzipping this file, I noticed that this does not contain any .so files.
I anyway copied the swt.jar to JAVA_HOME/jre/lib/ext. I also found a file named libcairo-swt.so in the eclipse folder, so I copied this as well to JAVA_HOME/jre/lib/amd64 folder. XULRunner 1.9 is also installed on my machine. I set the path settings as you suggested and tried running eclipse. I still get the XPCOM error and eclipse refuses to start.
Is this because i have not copied the correct libswt.so file ?
Would appreciate any help in this regard.
Thanks a lot !
Suhrid,
Bangalore, India.
Just adding:
-Dorg.eclipse.swt.browser.XULRunnerPath=/usr/lib/xulrunner
to my eclipse.ini worked for me.
Thanks for the heads up.
Thanks Paulo,
I’m also running a 64bit system.
modifying the eclipse.ini worked for me too!
Oops, sorry for mispelling your name Pablo.
Thanks to Joel for confirming your solution.
willanka
Thanks a lot Pablo for the solution..
installing xulrunner and appending to the eclipse.ini file worked for me .
Thanks
Rufus
Hi,
Thanks for the tips.
Adding XULRunnerPath system property works when I open the Welcome view, i.e I didn’t get XPCOM error anymore, but when opening Eclipse Help Contents, the error is still thrown even with the system property added.
Any ideas ?
Setya
doing this worked for me
sudo apt-get install xulrunner
append to eclipse.ini
-Dorg.eclipse.swt.browser.XULRunnerPath=/usr/lib/xulrunner/xulrunner
voila!!!
Now its working after
sudo apt-get install xulrunner
append to eclipse.ini
-Dorg.eclipse.swt.browser.XULRunnerPath=/usr/lib/xulrunner/xulrunner
on Ubuntu 7.10
joel’s solution worked for me on Ubuntu Feisty, x86_64. Thanks!
I am a new bie for linux , I dont know what “Dorg.eclipse.swt.browser.XULRunnerPath=/usr/lib/xulrunner/xulrunner” it does. but solved my problem like a charm.
Pablo, Joe, thanks a lot, working now
[...] – bookmarked by 4 members originally found by tit760 on 2008-12-08 Eclipse Ganymede startup problem in Ubuntu : org.eclipse.swt … [...]
Joel Pearson’s solution worked perfectly
With a fresh CentOS 5.2 distribution, I was getting this same error running Ganymede. The fix was ’sudo yum update xulrunner’.
[...] updates to jaunty and finally tracked it down to an issue with xulrunner thanks to the comments on this post. So if you’re getting a blank dialog box on launching eclipse lately the short answer [...]
wow great
just
yum update/install xulrunner
and append the line
-Dorg.eclipse.swt.browser.XULRunnerPath=/usr/lib/xulrunner/xulrunner
specifying the xulrunner script file path.
worked for me.
thanx a lot folks………
I am useing eclipse 3.4 with kubuntu and firefox 3.0.7. I am yet not able to fix the XPCOM error . Using 32bit system
I have also installed xulrunner, also modified eclipse.ini, set variables as above in .bashrc too..
BUT STILL I GET XPCOM ERROR ON ECLIPSE STARTUP
please help..
Ok fixed the problem.. was using older version of xulrunner
Yeah, NYB, I got the same problem as yours.
But after installing the xulrunner, it still does not work..
In addition, they say that you do not need the xulrunner, on Ubuntu if you already have the firefox installed.
Thanks
Besides, it is weired that my old web project never report / cause SWTError. but new created one always.
WHY??????????????????
To me works appending to eclipse.ini this line:
-Dorg.eclipse.swt.browser.XULRunnerPath=/usr/lib/xulrunner
WITHOUT the trailing “/xulrunner” and WITHOUT setting the .bashrc file.
Ciao!
Yo, thanks.
Thanks. This post fixed my problem.
Thanks a lot, this fixed my problem!!
I’d like to add that first I didn’t understood the hint:
“Here is the problem as reported in the /.metadata/.log file”
for I didn’t know where to search for that file – so I was not sure, whether this solution also fits to my problem.
Finally I found it in ~workspace/.metadata/.log – so if there are dummys like me entering this page and may not find the solution to their problem, this may be the hint, where to look for their particular problem, the .metadata directory lays in the directory eclipse uses as root for all projects to be filled in – standard is “workspace”
[...] Some solutions looks good, and proved by the follow comments. However, none of them works on my machine. [...]
Worked for me! Thanks!
sudo apt-get install xulrunner
append to eclipse.ini
-Dorg.eclipse.swt.browser.XULRunnerPath=/usr/lib/xulrunner/xulrunner
Thanks for posting this, modifying the eclipse.ini file worked for me as well.
Thanks a lot. After trying some options for a while finally I’ve found this page and now my eclipse is running on ubuntu 9.10 64 bits.
Regards, Iván.
Hello world !!
just add this
-Dorg.eclipse.swt.browser.XULRunnerPath=/usr/lib/mozilla
in your eclipse.ini without installing xulrunner.
it’s working for me (xubuntu karmic koala 9.10)