Camaleón <[email protected]> writes:

> On Sun, 05 Aug 2012 16:55:37 +0200, Csanyi Pal wrote:
>
>> Umarzuki Mochlis <[email protected]> writes:
>> 
>>> 2012/8/5 Csanyi Pal <[email protected]>:
>>>
>>>
>>>> I just installed openjdk-7-jdk but still get java version 1.6: $ java
>>>> -version
>>>> java version "1.6.0_24"
>>>>
>>>>
>>> you may need to use update-alternatives for that since now you have 2
>>> versions of them installed
>> 
>> I did so:
>> $ sudo update-alternatives --config java
>> 
>> http://alexander.holbreich.org/2011/11/java-7-on-debian/
>
> That was indeed the way to go.
>
> Strange is that after having installed openjdk v7 in last place it is not 
> being selected automatically as the default version; that's what I would 
> have expected (→ last wins) but seems that not :-?

I have now this:

$ sudo update-alternatives --config java
There are 2 choices for the alternative java (providing /usr/bin/java).

  Selection Path                                   Priority   Status
------------------------------------------------
  0  /usr/lib/jvm/java-6-openjdk-amd64/jre/bin/java  1061 auto mode
  1  /usr/lib/jvm/java-6-openjdk-amd64/jre/bin/java  1061 manual mode
* 2  /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java  1051 manual mode

Press enter to keep the current choice[*], or type selection number:

-- 
Regards from Pal


-- 
To UNSUBSCRIBE, email to [email protected] 
with a subject of "unsubscribe". Trouble? Contact [email protected]
Archive: http://lists.debian.org/[email protected]

Reply via email to