SCIENTIFIC-LINUX-USERS Archives

January 2011

SCIENTIFIC-LINUX-USERS@LISTSERV.FNAL.GOV

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Connie Sieh <[log in to unmask]>
Reply To:
Connie Sieh <[log in to unmask]>
Date:
Wed, 5 Jan 2011 17:04:10 -0600
Content-Type:
TEXT/PLAIN
Parts/Attachments:
TEXT/PLAIN (101 lines)
On Wed, 5 Jan 2011, Steven Leikeim wrote:

> On Wed, Jan 05, 2011 at 08:05:47AM -0700, Troy Dawson wrote:
>> 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:
>>>>
> .......
>>>>
>>>> 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
>
> Troy,
>
> Success!!!!!!
>
> Eclipse now starts up correctly with the java-1.6.0-openjdk installed. The
> only snag I ran is if the java-1.6.0-sun-compat is installed first, it creates
> the symbolic link /usr/bin/java pointing to /usr/java/default/bin/java. In
> order to use the java-1.6.0-openjdk this needs to point to /etc/alternatives/java.
> (It's possible that this link is being put in place by the jdk RPM.)
>
> Pointing /usr/bin/java to /etc/alternatives/java still allows the

Maybe you can use the "alternatives" command to "fix" this vs changing the 
link manually.

-Connie Sieh

> java-1.6.0-sun-compat java to work properly. When the java-1.6.0-openjdk is
> installed, it is automatically selected at the "best" version and Eclipse is
> happy.
>
> Thanks for your help in fixing this problem.
>
>
>
>
> Steven Leikeim
>
>

ATOM RSS1 RSS2