Tuesday, October 23, 2007

» Upgrade to java-1_6_0-sun u3 on openSUSE 10.3: fixing alternatives links

If you upgrade to java-1_6_0-sun-1.6.0.u3 on openSUSE 10.3, the /etc/alternatives/ links will be broken. To quickly fix them, just copy/paste the following snippet as in a shell as root:
for f in /etc/alternatives/j*; do
  ff=$(readlink "$f")
  case "$ff" in
    */jvm*|*/share/man/*) update-alternatives --auto "${f##*/}";;
    *) echo "(skipping $f)";;
  esac
done

Labels: ,

8 Comments:

Blogger Werner Habel said...

thank you very much, Pascal! :-)

15:04  
Anonymous Anonymous said...

Thanks a lot :-)

18:35  
Blogger DimiG said...

Thanks a lot for explanations. Is it really possible to paste many lines by such way in BASH command shell without file script creation?

21:04  
Anonymous Anonymous said...

@dimig
yes, on Suse at least:
Shift-Insert

05:42  
Blogger Unknown said...

This comment has been removed by the author.

03:33  
Blogger Unknown said...

I'm so thankful that I really felt the need to post this note to the creator of this amazing solution. I was dealing with this annoying issue around a week, and finally when YaST2 updated java to its latest version:
[code]Dixie7:/ # java -version
java version "1.6.0_03"
Java(TM) SE Runtime Environment (build 1.6.0_03-b05)
Java HotSpot(TM) Client VM (build 1.6.0_03-b05, mixed mode)[/code]

Then I applied the snippet and that did the magic!

THANKS A LOOOOOOOOOOOT !!!

03:36  
Blogger Unknown said...

After performing that snippet now cannt run this command:
smart --gui

Can you guys run smart with its gui after running the snippet ???

The error returned here is this 1:
Segmentation fault

03:35  
Blogger Unknown said...

Thank you! :D

11:52  

Post a Comment

<< Home