Eclipse 3.2.2 crashes on CentOS 4.4?

Support for the other architectures (X86_64, s390(x) and PowerPC)
Post Reply
gphreak
Posts: 4
Joined: 2006/12/31 11:16:03

Eclipse 3.2.2 crashes on CentOS 4.4?

Post by gphreak » 2007/02/25 08:49:52

Hi everybody,

I'm evaluating the 64-bit edition of CentOS 4.4 and got my Oracle applications including the database, jdeveloper and sqldeveloper successfully up and running.
My only problem is that Eclipse 3.2.2, my second IDE / subversion client, doesn't even start. The installed Sun JVM crashes and the shell prints the following error:
/usr/java/jdk1.5.0_11/bin/java: symbol lookup error: /home/ringhof/eclipse/configuration/org.eclipse.osgi/bundles/5/1/.cp/libswt-mozilla-gcc3-gtk-3236.so: undefined symbol: NS_InitEmbedding
Eclipse 3.2.1 works as far as I can say but using the update manager leads to another error.

But before I submit this as a bug to eclipse I wanted to ask you, if you experience a similar problem. I'm quite a linux n00b ;) so I'm not sure if I'm doing everything correct. I searched the web for people with similar problems but found nothing. But I can't imagine that I'm the only person trying to start the new eclipse on the current CentOS/RHEL/SL...

Any help is appreciated!

Cheers,
gphreak

pjwelsh
Posts: 2598
Joined: 2007/01/07 02:18:02
Location: Central IL USA

Re: Eclipse 3.2.2 crashes on CentOS 4.4?

Post by pjwelsh » 2007/02/25 20:32:20

Does the contents of http://www.mail-archive.com/pkg-java-maintainers@lists.alioth.debian.org/msg04502.html or the bug from https://bugs.eclipse.org/bugs/show_bug.cgi?id=72087 make sense to you - not to me (from a google search of "NS_InitEmbedding")?

gphreak
Posts: 4
Joined: 2006/12/31 11:16:03

Re: Eclipse 3.2.2 crashes on CentOS 4.4?

Post by gphreak » 2007/02/28 07:21:20

[quote]
pjwelsh wrote:
Does the contents of http://www.mail-archive.com/pkg-java-maintainers@lists.alioth.debian.org/msg04502.html or the bug from https://bugs.eclipse.org/bugs/show_bug.cgi?id=72087 make sense to you - not to me (from a google search of "NS_InitEmbedding")?[/quote]
Sadly, no. Seems somehow related, but I really can't figure out what to do. Guess I have to go back to the 32-bit version... -_- my linux box in my office runs eclipse 3.2.2 just fine. Installed both with "workstation" install option, deployed Oracle Database 10g and Oracle development tools.

Oh well, but thanks anyway :)

maschmuck
Posts: 1
Joined: 2007/03/05 20:23:59

Re: Eclipse 3.2.2 crashes on CentOS 4.4?

Post by maschmuck » 2007/03/05 20:29:41

I just had the same problem, and the second link given above provided a solution. It seems like eclipse 3.2.2 gets hold of the firefox installation and there is some kind of mismatch. The fix is to make sure the environment variable MOZILLA_FIVE_HOME points to /usr/bin/mozilla
You can try it by issuing the following in the terminal:
export MOZILLA_FIVE_HOME=/usr/bin/mozilla
./eclipse

then it works for me.

My permanent fix was to create a .Xclients file in my home directory with the following contents:
#!/bin/sh

MOZILLA_FIVE_HOME=/usr/lib/mozilla

export MOZILLA_FIVE_HOME

exec gnome-session

and then make the file writable.

Now it works all the time!

/ Olof

gphreak
Posts: 4
Joined: 2006/12/31 11:16:03

Re: Eclipse 3.2.2 crashes on CentOS 4.4?

Post by gphreak » 2007/03/08 08:08:51

Thank you very much for the hint. ^^ I already had given up on the x86_64 version but was too lazy to install 4.4 x86 since version 5 is right beyond the corner.
I'm definitly giving it a try and report back.

rodam
Posts: 1
Joined: 2007/04/16 15:12:36

Re: Eclipse 3.2.2 crashes on CentOS 4.4?

Post by rodam » 2007/04/16 15:33:06

Hello everybody,

As one 64bit user I had problems too with eclipse. As it seems that everybody points out to this post when talking of solutions, I decided to add mine too as all the others weren't working for me.
I don't really use CentOS but it may work in the same way for it too.
What I have is a 64bit linux kernel with JDK1.6 X64 from sun and eclipse 64bit 3.2.2 downloaded from eclipse.org + mozilla 1.7.13 64bit
I give only the line I use to start eclipse on my computer which you will have to modify in function of your configuration:

export MOZILLA_FIVE_HOME=/usr/lib64/mozilla-1.7.13;export PATH=/usr/java/jdk1.6.0/bin:${PATH};export LD_LIBRARY_PATH=$MOZILLA_FIVE_HOME;export LD_PRELOAD=/usr/lib64/mozilla-1.7.13/libgtkembedmoz.so;./eclipse

With this I can enter in Preferences dialog and chose from General/Web Browser a browser I want. Without the PRELOAD it crashes when accesing the Web Browser options or when displaying JavaDoc. The error is the already known undefined symbol: NS_InitEmbedding which is still found in libgtkembedmoz.so.
Hope this helps, it helped me already.

loopless2
Posts: 1
Joined: 2007/04/20 16:58:18

Re: Eclipse 3.2.2 crashes on CentOS 4.4?

Post by loopless2 » 2007/04/20 17:17:24

I have exactly the same configuration as you, but have been unable to find a x86_64 version of mozilla 1.7.13. I tried building from scratch, but got stuck trying to build a compatible gtk for x86_64.


Andrew

Post Reply

Return to “CentOS 4 - X86_64,s390(x) and PowerPC Support”