UBUNTU JAVA problem.
Tzafrir Cohen
tzafrir at cohens.org.il
Tue Oct 13 12:12:36 IST 2009
On Tue, Oct 13, 2009 at 03:34:40AM +0200, geoffrey mendelson wrote:
> Ubuntu users: a random update tonight changed the link in /etc/
> alternatives
You should not update this link directly. Use update-alternatives. Some
alternative links are grouped together. For instance:
$ /usr/sbin/update-alternatives --display javah
javah - status is auto.
link currently points to /usr/lib/jvm/java-6-openjdk/bin/javah
/usr/lib/jvm/java-gcj/bin/javah - priority 1042
slave javah.1.gz: /usr/lib/jvm/java-gcj/man/man1/javah.1.gz
/usr/bin/gjavah-4.3 - priority 43
slave javah.1.gz: /usr/share/man/man1/gjavah-4.3.1.gz
/usr/lib/jvm/java-6-openjdk/bin/javah - priority 1061
slave javah.1.gz: /usr/lib/jvm/java-6-openjdk/man/man1/javah.1.gz
Current `best' version is /usr/lib/jvm/java-6-openjdk/bin/javah.
If javah is updated, its man page should update as well.
> from sun java (1.6) to a gnu java (1.5) breaking every Java
> app I had.
What do you mean by GNU Java? Do you mean openjdk (as opposed to Sun's
JDK binary)?
If so, OpenJDK is the thing included in Fedora as well (to answer Hetz)
>
> /usr/bin/java is linked to /etc/alternatives/java which should be linked
> to /usr/lib/jvm/java-6-sun-1.6.0.16/jre/bin/java
No. That's bypasing the alternatives mechanism, and may bite you the
next time such a package is installed.
update-alternatives --display java
To select one explicitly:
update-alternatives --config java
--
Tzafrir Cohen | tzafrir at jabber.org | VIM is
http://tzafrir.org.il | | a Mutt's
tzafrir at cohens.org.il | | best
ICQ# 16849754 | | friend
More information about the Linux-il
mailing list