Red Hat Bugzilla – Bug 505290
alternatives settings for java isn't used well
Last modified: 2010-04-27 12:20:31 EDT
Description of problem:
If I would like to use Sun JDK instead of OpenJDK and I do the same things as it's described here:
The resolution is, that yum doesn't care with the alternatives settings and for example it wants to download the openjdk even though the Sun JDK is the only option setted in "alternatives --config java"
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. doing these exact steps as described here:
2. openjdk is not installed
3. try to run: "yum install maven2
yum wants to install openjdk too
Yum realizes, that Sun JDK is already installed, and don't install OpenJDK
This message is a reminder that Fedora 11 is nearing its end of life.
Approximately 30 (thirty) days from now Fedora will stop maintaining
and issuing updates for Fedora 11. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as WONTFIX if it remains open with a Fedora
'version' of '11'.
Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version prior to Fedora 11's end of life.
Bug Reporter: Thank you for reporting this issue and we are sorry that
we may not be able to fix it before Fedora 11 is end of life. If you
would still like to see this bug fixed and are able to reproduce it
against a later version of Fedora please change the 'version' of this
bug to the applicable version. If you are unable to change the version,
please add a comment here and someone will do it for you.
Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.
The process we are following is described here:
Hi Major Peter,
I'm sorry I failed to see this bug for a long time. However I believe you mis-filed it under galternatives, the bug has nothing to do with it.
Moreover, I don't think it is a bug at all (neither with yum or OpenJDK). The issue must be that maven explicitly requires OpenJDK, and when you asked yum to install maven it tries to pull in OpenJDK too.
If you have not resolved this problem already, I think all you need to do is just run the alternatives command again after you install OpenJDK and you should be fine.
I initially thought, that when I configure alternatives to use Sun JDK instead of OpenJDK, then yum will also recognize this, and it wouldn't want to install OpenJDK for me, but realize, that there is a handly installed Sun JDK (yeah, I had to install by hand, because it's not in the repo...).
The solution was to download maven from apache.org, and install it manually.
So whenever I want to use a Java-dependent thing I have to install manually, just because I don't want to use OpenJDK.
Great, but never mind, I got used to it in the last year...