From: Jordan Metzmeier on
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On 08/13/2010 02:42 PM, Merciadri Luca wrote:
> Jordan Metzmeier wrote:
>> Java has a separate alternatives command. It is
>> "update-java-alternatives".
>>
> # update-java-alternatives -l
> java-6-sun 63 /usr/lib/jvm/java-6-sun
> java-gcj 1042 /usr/lib/jvm/java-gcj
>
>
> Normal?
>

Yes, the java alternatives command just groups multiple alternatives
into links into basically three categories (sun, gcj, and openjdk).
Selecting one should update all java-related alternatives to that
implementation.

- --
Jordan Metzmeier

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iQIcBAEBCAAGBQJMZZX1AAoJEKj/C3qNthmTrf4P+wbPTOqxuqrSaRS6Y6DMDYyE
DJZxyQw2PRmAEXQLY6iKu8TOUU9+zC+dCXZb/FXnfaLQ6ZqxcTj4gmDzVsLB3U7i
FtIpIxKQhmUkih2jOIR0rAD2h7c7If9eVvG1/nEDJ5hBcZdDt9r6ChuCuF65lJaW
CQpJxwCIR8yvAfk5khikbV7UWTvrX3u/nF+c0ZbgXR2H5nvY9NBwnOADurSszwBj
2frG7kfKYhEgXt5XQrsM6cLDZDS0xQAllVxfYsiCwiFC542sPsIQQ2YvXhpmRFx6
Lz/iTdCM2F+kgqiPb5xEQQcww4xneIioM4nuhNmNEd5FhgEjcrgb3iozwpTB7EmV
JEdXBHcD+yHWQcVfIkIwxjmUf4qYrpyK3E6ve92rQoRyFSDWojwwgC0BPSGG+nFC
kl/xvuLsDV1UBgrKyX/fo4DH5qaK+fPRZhkcOMdtwwDoqARQ8SanCZCQq5hyQ36/
LbkIMNTi7k99re+bydv8MAHu4nzm5vhi7zN1RkeKxM+CuPxXTl15bybH4cnfcDZ8
Uy3MmrAhRJ1/D1gy9QCaPQbVn+njmYisGj0tLQvHgn8XbV+va3R+3oQC2PZ2GLRb
L2V0e51o0/2Vf0jGj5LwMcFsEpHtRm84CmU7E8fdVQ7etHu5T4rsT1c62iqNgD5b
fR1NBTdvwvruC44wYnE8
=nSAs
-----END PGP SIGNATURE-----


--
To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
Archive: http://lists.debian.org/4C6595F6.6070908(a)gmail.com
From: Camaleón on
On Fri, 13 Aug 2010 20:41:14 +0200, Merciadri Luca wrote:

> Well, you're right.
>
> But I've found
>
> ==
> /usr/lib/jvm/java-6-sun/sun-java6-6-12/jdk1.6.0_12/jre/bin# ls -al
> total 756
> drwxr-xr-x 2 root root 4096 2009-08-29 23:03 .
> drwxr-xr-x 6 root root 4096 2009-08-29 23:03 ..
> lrwxrwxrwx 1 root root 10 2009-08-29 23:03 ControlPanel -> ./jcontrol
> -rwxr-xr-x 1 root root 47308 2009-08-29 23:03 java
> <----------------------------------------

(...)

Sure, Sun's java "bin" is in your system and you can launch any java
application by calling the full path ("/usr/lib/jvm/java-6-sun/sun-
java6-6-12/jdk1.6.0_12/jre/bin/java -jar ...") , is just that "update-
alternatives" cannot auto-link for "java -jar ..." to your current Sun
binary, which was installed from "outside".

> What do you suggest now?

If you are asking how to force "update-alternatives" to "detect" the
installed Sun's Java binary, dunno.

No information about this in the man page? :-?

Greetings,

--
Camaleón


--
To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
Archive: http://lists.debian.org/pan.2010.08.13.19.08.06(a)gmail.com
From: Merciadri Luca on
Camaleón wrote:
> On Fri, 13 Aug 2010 20:41:14 +0200, Merciadri Luca wrote:
>
>
>> Well, you're right.
>>
>> But I've found
>>
>> ==
>> /usr/lib/jvm/java-6-sun/sun-java6-6-12/jdk1.6.0_12/jre/bin# ls -al
>> total 756
>> drwxr-xr-x 2 root root 4096 2009-08-29 23:03 .
>> drwxr-xr-x 6 root root 4096 2009-08-29 23:03 ..
>> lrwxrwxrwx 1 root root 10 2009-08-29 23:03 ControlPanel -> ./jcontrol
>> -rwxr-xr-x 1 root root 47308 2009-08-29 23:03 java
>> <----------------------------------------
>>
>
> (...)
>
> Sure, Sun's java "bin" is in your system and you can launch any java
> application by calling the full path ("/usr/lib/jvm/java-6-sun/sun-
> java6-6-12/jdk1.6.0_12/jre/bin/java -jar ...") , is just that "update-
> alternatives" cannot auto-link for "java -jar ..." to your current Sun
> binary, which was installed from "outside".
>
But the main problem is that it (it = Sun's java) is not used by
default. Well, I could symlink or edit .bashrc so that it will work with
many java calls, but not all. For example, Eclipse (I don't like
GUIs/IDEs, but I need for some special things) allows me to configure
another JVM, but it looks like it does not use it, even after having
choosen it. (I'm getting many strange exceptions from Google's SDK.)
>> What do you suggest now?
>>
>
> If you are asking how to force "update-alternatives" to "detect" the
> installed Sun's Java binary, dunno.
>
> No information about this in the man page? :-?
>
To detect, I did not find anything. But to set manually a new one, it is
possible, but I can't understand the link between
update-java-alternatives and update-alternatives. One must be more
prioritary than another, and the most prioritary one needs to be set to
Sun's one.

--
Merciadri Luca
See http://www.student.montefiore.ulg.ac.be/~merciadri/
I use PGP. If there is an incompatibility problem with your mail
client, please contact me.


Every cloud has a silver lining.

From: Merciadri Luca on
Camaleón wrote:
> On Fri, 13 Aug 2010 21:26:53 +0200, Merciadri Luca wrote:
>
>
>
> (...)
>
>
>
> By reading this manual:
>
> ***
> http://www.debian.org/doc/FAQ/ch-customizing.en.html
>
> (section 11.10)
>
> If a package doesn't register itself as a window manager for some reason
> (file a bug if it's in error), or if you use a window manager from /usr/
> local directory, the selections on screen won't contain your preferred
> entry. You can update the link through command line options, like this:
>
> update-alternatives --install /usr/bin/x-window-manager x-window-manager /usr/local/bin/wmaker-cvs 50
>
> The first argument to `--install' option is the symlink that points to /
> etc/alternatives/NAME, where NAME is the second argument. The third
> argument is the program to which /etc/alternatives/NAME should point to,
> and the fourth argument is the priority (larger value means the
> alternative will more probably get picked automatically).
> ***
>
> I would try (disclaimer: not tested, proceed at your own risk :-P)
> something like:
>
> ***
> update-alternatives --install /usr/bin/java java /usr/lib/jvm/java-6-sun/sun-java6-6-12/jdk1.6.0_12/jre/bin/java 1
> ***
>
Thanks for this. And about java-update-alternatives? Is one more
prioritary than another? (See my last message, which was apparently not
sent.)

--
Merciadri Luca
See http://www.student.montefiore.ulg.ac.be/~merciadri/
I use PGP. If there is an incompatibility problem with your mail
client, please contact me.


Give a man a fish and you feed him for a day; teach a man to fish and
you feed him for a lifetime.

From: Camaleón on
On Fri, 13 Aug 2010 21:26:53 +0200, Merciadri Luca wrote:

> Camaleón wrote:

(...)

>> No information about this in the man page? :-?
>>
> To detect, I did not find anything. But to set manually a new one, it is
> possible, but I can't understand the link between
> update-java-alternatives and update-alternatives. One must be more
> prioritary than another, and the most prioritary one needs to be set to
> Sun's one.

By reading this manual:

***
http://www.debian.org/doc/FAQ/ch-customizing.en.html

(section 11.10)

If a package doesn't register itself as a window manager for some reason
(file a bug if it's in error), or if you use a window manager from /usr/
local directory, the selections on screen won't contain your preferred
entry. You can update the link through command line options, like this:

update-alternatives --install /usr/bin/x-window-manager x-window-manager /usr/local/bin/wmaker-cvs 50

The first argument to `--install' option is the symlink that points to /
etc/alternatives/NAME, where NAME is the second argument. The third
argument is the program to which /etc/alternatives/NAME should point to,
and the fourth argument is the priority (larger value means the
alternative will more probably get picked automatically).
***

I would try (disclaimer: not tested, proceed at your own risk :-P)
something like:

***
update-alternatives --install /usr/bin/java java /usr/lib/jvm/java-6-sun/sun-java6-6-12/jdk1.6.0_12/jre/bin/java 1
***

Greetings,

--
Camaleón


--
To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
Archive: http://lists.debian.org/pan.2010.08.13.20.49.19(a)gmail.com