Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 731039

Summary: Proprietary jdks 7 are not located properly by s-s-java
Product: Red Hat Enterprise Linux 6 Reporter: jiri vanek <jvanek>
Component: system-switch-javaAssignee: jiri vanek <jvanek>
Status: CLOSED ERRATA QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.3CC: dbhole, rbiba
Target Milestone: beta   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 798565 798569 (view as bug list) Environment:
Last Closed: 2011-12-06 18:53:25 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 798565, 798569    
Attachments:
Description Flags
proposed patch none

Description jiri vanek 2011-08-16 14:30:02 UTC
Description of problem:
s-s-java can not recognize beta packages of ibm and oracle java 7


How reproducible:
always

Steps to Reproduce:
1. install ibm and (or) sun jdk 7, you can also install other jdks (ibm 4-6, oracle 6, openjdk 6,7, gcj 5....)
2. run alternatives --config java command
3. you will see eg:
  Selection    Command
-----------------------------------------------
   1           /usr/lib/jvm/jre-1.5.0-gcj/bin/java
   2           /usr/lib/jvm/jre-1.6.0-openjdk.x86_64/bin/java
   3           /usr/lib/jvm/jre-1.7.0-openjdk.x86_64/bin/java
   4           /usr/lib/jvm/java-1.7.0-sun-1.7.0.0.x86_64/jre/bin/java

  
Actual results:
run system-switch-java, you will see eg:
jre-1.5.0-gcj
jre-1.6.0-openjdk.x86_64
jre-1.7.0-openjdk.x86_64

Expected results:
jre-1.5.0-gcj
jre-1.6.0-openjdk.x86_64
jre-1.7.0-openjdk.x86_64
java-1.7.0-sun-1.7.0.0.x86_64

Additional info:

This is caused by situatuion that proprietary jdks are linking their jre directly from alternatives  instead of jre link.

Comment 3 jiri vanek 2011-08-16 14:45:28 UTC
Created attachment 518506 [details]
proposed patch

This is proposed patch.
It also fix 725718, Sorry for not delivering them separately, but they are quite bound together.

Comment 11 errata-xmlrpc 2011-12-06 18:53:25 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2011-1744.html

Comment 12 jiri vanek 2012-02-29 09:21:10 UTC
java-1.7.0-sun was renamed to java-1.7.0-oracle. I'm afraid it will need changes also in s-s-java