← Back to team overview

openjdk team mailing list archive

[Bug 1055186] [NEW] Default Java alternatives symlink points to specific version instead of default-java

 

Public bug reported:

I am using Ubuntu 12.04 LTS. As per default, I had openjdk-6-jre
installed. After installing openjdk-7-jre via Synaptic, I realized none
of the symlinks updated to the new version.

When going to manually update the symlinks, I discovered that
/usr/bin/java points to /etc/alternatives/java which points to
/usr/lib/jvm/java-6-openjdk-amd64/jre/bin/java. It would seem to me that
it would make more sense for  /etc/alternatives/java to point at
/usr/lib/jvm/default-java/jre/bin/java instead.

I don't believe this is an error with Synaptic or the installation
package for java-7-openjdk-amd64 as the /usr/lib/jvm/default-java link
was correctly updated after installing the newer Java package. This
should be a very simple bug fix that will improve usability for non-
technical users.

> $ lsb_release -rd
Description:    Ubuntu 12.04.1 LTS
Release:   12.04

Expected Behavior:
/etc/altenatives/java links to /usr/lib/jvm/default-java

Bug Behavior:
/etc/alternatives/java links to /usr/lib/jvm/java-6-openjdk-amd64/

P.S. I've always been really interested in contributing to the
development effort for Ubuntu and would be more than happy to fix this
bug. I suppose I'm mostly looking for validation that it is in fact a
bug and someone to point me to the general area of the source where the
symlink creation occurs.

** Affects: openjdk-7 (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of OpenJDK,
which is subscribed to openjdk-7 in Ubuntu.
https://bugs.launchpad.net/bugs/1055186

Title:
  Default Java alternatives symlink points to specific version instead
  of default-java

Status in “openjdk-7” package in Ubuntu:
  New

Bug description:
  I am using Ubuntu 12.04 LTS. As per default, I had openjdk-6-jre
  installed. After installing openjdk-7-jre via Synaptic, I realized
  none of the symlinks updated to the new version.

  When going to manually update the symlinks, I discovered that
  /usr/bin/java points to /etc/alternatives/java which points to
  /usr/lib/jvm/java-6-openjdk-amd64/jre/bin/java. It would seem to me
  that it would make more sense for  /etc/alternatives/java to point at
  /usr/lib/jvm/default-java/jre/bin/java instead.

  I don't believe this is an error with Synaptic or the installation
  package for java-7-openjdk-amd64 as the /usr/lib/jvm/default-java link
  was correctly updated after installing the newer Java package. This
  should be a very simple bug fix that will improve usability for non-
  technical users.

  > $ lsb_release -rd
  Description:    Ubuntu 12.04.1 LTS
  Release:   12.04

  Expected Behavior:
  /etc/altenatives/java links to /usr/lib/jvm/default-java

  Bug Behavior:
  /etc/alternatives/java links to /usr/lib/jvm/java-6-openjdk-amd64/

  P.S. I've always been really interested in contributing to the
  development effort for Ubuntu and would be more than happy to fix this
  bug. I suppose I'm mostly looking for validation that it is in fact a
  bug and someone to point me to the general area of the source where
  the symlink creation occurs.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openjdk-7/+bug/1055186/+subscriptions


Follow ups

References