man update-alternatives priority

Thufir hawat.thufir at
Wed Jan 14 16:41:17 UTC 2009

Should I make the sun binary have a higher priority?

thufir at arrakis:~$ 
thufir at arrakis:~$ sudo update-alternatives --config java

There are 2 alternatives which provide `java'.

  Selection    Alternative
*+        1    /usr/lib/jvm/java-6-openjdk/jre/bin/java
          2    /usr/lib/jvm/java-6-sun/jre/bin/java

Press enter to keep the default[*], or type selection number: 2
Using '/usr/lib/jvm/java-6-sun/jre/bin/java' to provide 'java'.
thufir at arrakis:~$ 

"Each alternative has a priority associated with it.  When a link  group 
is  in  automatic  mode,  the alternatives pointed to by members of the 
group will be those which have the highest priority.

When using the --config option, update-alternatives will  list  all  of 
the  choices for the link group of which given name is the master link.
The current choice is marked with a ’*’ and the choice with the highest 
priority with a ’+’.  You will then be prompted for your choice regarding 
this link group.  Once you make a change, the link  group  will  no 
longer be in auto mode. You will need to use the --auto option in order 
to return to the automatic mode."

Also, am I using the sun version for javac?  I thought that I'd specified 
to install the jdk in synaptic:

thufir at arrakis:~$ 
thufir at arrakis:~$ javac -version
javac 1.6.0_0-internal
thufir at arrakis:~$ 



More information about the ubuntu-users mailing list