I think this issue has popped up again. Either it is a problem in the documentation, or a problem with update-java-alternatives binary itself.
This is the output I get when using that command on Gutsy.
rohan@ubuntu:~$ sudo update-java-alternatives --set java-6-sun
Using `/usr/lib/jvm/java-6-sun/bin/appletviewer' to provide `appletviewer'.
Using `/usr/lib/jvm/java-6-sun/bin/apt' to provide `apt'.
...
I think this issue has popped up again. Either it is a problem in the documentation, or a problem with update- java-alternativ es binary itself.
This is the output I get when using that command on Gutsy.
rohan@ubuntu:~$ sudo update- java-alternativ es --set --jre java-6-sun java-alternativ es [--jre] [--plugin] [ -t|--test| -v|--verbose]
-l| --list [<jname>]
-a| --auto
-h| -?|--help
usage: update-
-s|--set <jname>
Whereas the command for JDK works perfectly -
rohan@ubuntu:~$ sudo update- java-alternativ es --set java-6-sun jvm/java- 6-sun/bin/ appletviewer' to provide `appletviewer'. jvm/java- 6-sun/bin/ apt' to provide `apt'.
Using `/usr/lib/
Using `/usr/lib/
...
Here is some more info -
rohan@ubuntu:~$ apt-cache policy sun-java6-jre
sun-java6-jre:
Installed: 6-03-0ubuntu2
Candidate: 6-03-0ubuntu2
Please tell me if I need to provide any more info. Thanks.