When an error message in the form, failed to read link /usr/bin/: No such file or directory was sent by alternatives I would do an ls -l to see where the symlink was pointing. - Remove the symlink /usr/bin/
if it was pointing to /etc/alternatives. - Create a new symlink in /usr/bin/
pointing to /usr/java/jdk1.6.0.21/bin/ . - Run /usr/sbin/update-alternatives –install /usr/bin/
$JAVA_ALTERNATIVE_PRIORITY - Do /usr/sbin/update-alternatives –auto
After I went through all the steps I did not get any complaints from Fedora and my Java seemed to be correct.
Update
lrwxrwxrwx 1 root root 24 Dec 28 01:20 /usr/bin/javasw -> /etc/alternatives/javasw
1 comment:
I followed it through with strace, the link its referring to is missing in /etc/alternatives and not as the stupid error messages suggest. Do ls -l /etc/alternatives and you will see what I mean.
Post a Comment