Comment 2 for bug 127053

Revision history for this message
Rohan Dhruva (rohandhruva) wrote :

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 --jre java-6-sun
usage: update-java-alternatives [--jre] [--plugin] [ -t|--test|-v|--verbose]
           -l|--list [<jname>]
           -s|--set <jname>
           -a|--auto
           -h|-?|--help

Whereas the command for JDK works perfectly -

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'.
...

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.