Re: UBUNTU JAVA problem.
Sorry, but I don't get it: Why do they use the Gnu Java instead of the openJDK? Fedora installs OpenJDK by default.. Hetz On Tue, Oct 13, 2009 at 3:34 AM, geoffrey mendelson geoffreymendel...@gmail.com wrote: Ubuntu users: a random update tonight changed the link in /etc/alternatives from sun java (1.6) to a gnu java (1.5) breaking every Java app I had. /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 This occurred on 9.0.4. Geoff. -- geoffrey mendelson N3OWJ/4X1GM Jerusalem Israel geoffreymendel...@gmail.com ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il -- Skepticism is the lazy person's default position. my blog (hebrew): http://benhamo.org ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: UBUNTU JAVA problem.
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 | tzaf...@jabber.org | VIM is http://tzafrir.org.il || a Mutt's tzaf...@cohens.org.il || best ICQ# 16849754 || friend ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: UBUNTU JAVA problem.
On Oct 13, 2009, at 11:56 AM, Hetz Ben Hamo wrote: Sorry, but I don't get it: Why do they use the Gnu Java instead of the openJDK? Fedora installs OpenJDK by default.. I did not get it either. One minute I'm happily running Sun's JRE at the 1.6 level and the next, a link was changed and I wasn't. I saved the old link. Running the old link (as in after their change last night): /etc/ alternatives/java.old -version java version 1.5.0 gij (GNU libgcj) version 4.3.3 Copyright (C) 2007 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Running the link I fixed: /etc/alternatives/java -version java version 1.6.0_16 Java(TM) SE Runtime Environment (build 1.6.0_16-b01) Java HotSpot(TM) Client VM (build 14.2-b01, mixed mode, sharing) Geoff. -- geoffrey mendelson N3OWJ/4X1GM Jerusalem Israel geoffreymendel...@gmail.com ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: UBUNTU JAVA problem.
On Tue, Oct 13, 2009 at 01:35:44PM +0200, geoffrey mendelson wrote: On Oct 13, 2009, at 11:56 AM, Hetz Ben Hamo wrote: Sorry, but I don't get it: Why do they use the Gnu Java instead of the openJDK? Fedora installs OpenJDK by default.. I did not get it either. One minute I'm happily running Sun's JRE at the 1.6 level and the next, a link was changed and I wasn't. I saved the old link. Running the old link (as in after their change last night): /etc/ alternatives/java.old -version java version 1.5.0 gij (GNU libgcj) version 4.3.3 Copyright (C) 2007 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Running the link I fixed: /etc/alternatives/java -version java version 1.6.0_16 Java(TM) SE Runtime Environment (build 1.6.0_16-b01) Java HotSpot(TM) Client VM (build 14.2-b01, mixed mode, sharing) Short answer: aptitude install openjdk-6-jre Long answer: Here's what I have here (Debian Lenny) $ /usr/sbin/update-alternatives --display java java - status is auto. link currently points to /usr/lib/jvm/java-6-openjdk/jre/bin/java /usr/lib/jvm/java-gcj/jre/bin/java - priority 1042 /usr/bin/gij-4.3 - priority 43 /usr/lib/jvm/java-6-openjdk/jre/bin/java - priority 1061 slave java.1.gz: /usr/lib/jvm/java-6-openjdk/jre/man/man1/java.1.gz Current `best' version is /usr/lib/jvm/java-6-openjdk/jre/bin/java. As you can see, I happen to have gij installed. It has a priority of 43. However I also have openjdk's jre installed, with a somewhat higher priority (1061). There are also non-free package with sun's JDK and JRE. I suspect they have somewhat higher priority (if you bothered installing them you probably want them). OpenJDK and Sun's JDK are not the only ones around. Some might never have existed if Java would have been free to start with (I guess gij may be one), but others perform better in some important use cases (e.g. embedded systems). tzaf...@sweetmorn:~$ aptitude search '~Pjava-virtual-machine' p gij - The GNU Java bytecode interpreter p gij-4.2 - The GNU Java bytecode interpreter i A gij-4.3 - The GNU Java bytecode interpreter p jamvm - virtual machine which conforms to JVM spec i A java-gcj-compat - Java runtime environment using GIJ i A java-gcj-compat-headless- Java runtime environment using GIJ (headle p kaffe-jthreads - A green threads enabled version of the Kaf p kaffe-pthreads - A POSIX threads enabled version of the Kaf i A openjdk-6-jre-headless - OpenJDK Java runtime, using Hotspot JIT (h If a program works well with jamvm, which only takes 628kb of disk spaces once installed, why bother with the whole big bad OpenJDK? (66,784 kb, not including dependencies. I ommited the Classpath dependency for both). -- Tzafrir Cohen | tzaf...@jabber.org | VIM is http://tzafrir.org.il || a Mutt's tzaf...@cohens.org.il || best ICQ# 16849754 || friend ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
UBUNTU JAVA problem.
Ubuntu users: a random update tonight changed the link in /etc/ alternatives from sun java (1.6) to a gnu java (1.5) breaking every Java app I had. /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 This occurred on 9.0.4. Geoff. -- geoffrey mendelson N3OWJ/4X1GM Jerusalem Israel geoffreymendel...@gmail.com ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il