Find the answer to your Linux question:
Results 1 to 4 of 4
Does anyone know if the sun-java6-jre package replaces the sun-java5-jre? I am just wondering if I need both....
  1. #1
    Linux Newbie
    Join Date
    Feb 2006
    Location
    Dover, DE
    Posts
    112

    sun-java6-jre

    Does anyone know if the sun-java6-jre package replaces the sun-java5-jre?
    I am just wondering if I need both.

  2. #2
    Linux Newbie craigevil's Avatar
    Join Date
    Jun 2005
    Location
    Terra in the Milky Way
    Posts
    110
    Doesn't hurt anything to have 5 and 6. In my case Frostwire and Azureus will only recognize java5, while java6 works great in Iceweasel.

    DO not remove 5 before installing 6.

    Install 6 then do update-alternatives --config java : older version can then be removed
    Debian Sid LXDE Kernel liquorix CPU Pentium IV 2.80GHz GeForce 9400 GT
    Debian - "If you can't apt-get something, it isn't useful or doesn't exist"
    Giant Debian sources.list | Debian upgrade script smxi | sysinfo script inxi

  3. #3
    Linux Newbie
    Join Date
    Feb 2006
    Location
    Dover, DE
    Posts
    112
    Thanks that helps. Didn't know about the update-alternative command.
    Code:
    jonandtice@socrates:~$ sudo update-alternatives --display java
    java - status is auto.
     link currently points to /usr/lib/jvm/java-6-sun/jre/bin/java
    /usr/lib/jvm/java-1.5.0-sun/jre/bin/java - priority 53
     slave java.1.gz: /usr/lib/jvm/java-1.5.0-sun-1.5.0.10/jre/man/man1/java.1.gz
    /usr/lib/jvm/java-6-sun/jre/bin/java - priority 63
     slave java.1.gz: /usr/lib/jvm/java-6-sun-1.6.0.00/jre/man/man1/java.1.gz
    Current `best' version is /usr/lib/jvm/java-6-sun/jre/bin/java.
    I guess this means java6 is already my default. So programs that need java5 still use java5? Wouldn't java6 be backwards-compatible?

  4. #4
    Linux Newbie craigevil's Avatar
    Join Date
    Jun 2005
    Location
    Terra in the Milky Way
    Posts
    110
    Ran update-alternatives --config java

    It showed:
    There are 2 alternatives which provide `java'.

    Selection Alternative
    -----------------------------------------------
    * 1 /usr/lib/jvm/java-1.5.0-sun/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'.
    root@craigevil:/home/craig# java -version
    java version "1.6.0"
    Java(TM) SE Runtime Environment (build 1.6.0-b105)
    Java HotSpot(TM) Client VM (build 1.6.0-b105, mixed mode, sharing)

    I then tried running Frostwire and Azureus and they both worked just fine. The first time I tried using java6 I stupidly uninstalled java5 first and had problems.
    Debian Sid LXDE Kernel liquorix CPU Pentium IV 2.80GHz GeForce 9400 GT
    Debian - "If you can't apt-get something, it isn't useful or doesn't exist"
    Giant Debian sources.list | Debian upgrade script smxi | sysinfo script inxi

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •