Subject: | |
From: | |
Reply To: | |
Date: | Wed, 5 Jan 2011 09:05:47 -0600 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
Troy J Dawson wrote:
> Steven Leikeim wrote:
>> Happy New Year everyone.
>>
>>
>>
>> We are having a problem with the Eclipse IDE (eclipse-platform-3.2.1-19.el5.x86_64)
>> in that it is not starting correctly. When we start Eclipse, doesn't matter
>> if it's started from the command line or Window Manger Menu, we get the message:
>>
>> An error has occured. See the log file ..../sleikeim/workspace/.metadata/.log
>>
>> which contains:
>>
>> ------ .log file -----------------------
>> !SESSION 2010-11-04 14:03:34.285 -----------------------------------------------
>> eclipse.buildId=M20060921-0945
>> java.version=1.6.0_22
>> java.vendor=Sun Microsystems Inc.
>> BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
>> Command-line arguments: -os linux -ws gtk -arch x86_64
>>
>> !ENTRY org.eclipse.osgi 4 0 2010-11-04 14:03:36.426
>> !MESSAGE Application error
>> !STACK 1
>> java.lang.UnsatisfiedLinkError: /usr/lib64/eclipse/configuration/org.eclipse.osg
>> i/bundles/101/1/.cp/libswt-pi-gtk-3235.so: /usr/lib64/eclipse/configuration/org.
>> eclipse.osgi/bundles/101/1/.cp/libswt-pi-gtk-3235.so: wrong ELF class: ELFCLASS6
>> 4 (Possible cause: architecture word width mismatch)
>> at java.lang.ClassLoader$NativeLibrary.load(Native Method)
>> at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1803)
>> at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1712)
>> ----- Truncated end of .log file ---------------------------------
>>
>> The last related updates to java appear to be on October 21st where jdk was
>> updated to 2000:jdk-1.6.0_22-fcs and java-1.6.0-sun-compat was updated to
>> java-1.6.0-sun-compat-1.6.0.22-3.sl5.jpp. (In both cases, both i586 and x86_64
>> architectures were updated.)
>>
>> I tested this on a clean installation of Scientific Linux 5.5 (x86_64) with
>> the following results:
>>
>> - Basic minimal installation of Scientifc Linux 5.5 with the addition
>> of eclipse-platform but no further updates - Eclipse works
>> - Updated all RPMS **EXCEPT** jdk and java-1.6.0-sun-compat - Eclipse
>> works.
>> - Updated jdk and java-1.6.0-sun-compat - Eclipse crashes as noted
>> above.
>>
>> Finally, my questions are:
>>
>> - Is this a known issue? (If not is is now!! :) )
>
> Yes, though not widely known.
> It's a bit of a pain because with SL5.5 we have 3 different versions of
> java. gcj, sun (oracle), and openjdk
>
>> - Is there a known workaround or update to fix this problem?
>
> This may, or may not, be a workaround for you.
> Eclipse wants to use the gcj version of java.
> I did the following to get eclipse working
> rpm -e --nodeps java-1.4.2-gcj-compat java-1.6.0-sun-compat
> yum install java-1.4.2-gcj-compat
>
> Of course, that means that all of my java links point to the gcj version
> of java, which may or may not be what you want.
>
> I am currently checking to see if eclipse will work with the openjdk,
> which would be a better solution, since it is version 1.6
>
> Troy
>
Well, it looks like openjdk is the better solution.
I installed all of the openjdk packages
yum install java-1.6.0-openjdk\*
and eclipse worked for me.
I even updated my sun java
yum install java-1.6.0-sun-compat
And eclipse continued to work.
Let us know if this works for you.
Thanks
Troy
>> Any help to resolve this issue would be greatly appreciated.
>>
>> Thanks,
>>
>>
>>
>> Steven Leikeim
>>
>
>
--
__________________________________________________
Troy Dawson [log in to unmask] (630)840-6468
Fermilab ComputingDivision/SCF/FEF/SLSMS Group
__________________________________________________
|
|
|