Bug 990925

Summary: java-1.7.0-openjdk not found by system-switch-java
Product: [Fedora] Fedora Reporter: Petr Viktorin (pviktori) <pviktori>
Component: java-1.7.0-openjdkAssignee: Omair Majid <omajid>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 19CC: ahughes, akurtako, dbhole, jerboaa, jvanek, mr.scott.beamer+bugmail, omajid
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-02-04 16:56:34 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Petr Viktorin (pviktori) 2013-08-01 08:36:25 UTC
Description of problem:
java-1.7.0-openjdk is not found by system-switch-java

Version-Release number of selected component (if applicable):
$ rpm -q java-1.7.0-openjdk system-switch-java
java-1.7.0-openjdk-1.7.0.25-2.3.10.10.fc19.x86_64
system-switch-java-1.1.5-6.fc19.noarch


Steps to Reproduce:
1. Install a minimal Fedora 19 system
2. sudo yum install java-1.7.0-openjdk /usr/bin/system-switch-java
3. sudo system-switch-java

Actual results:

┌───────┤ Java Toolset Configuration ├────────┐
│                                             │ 
│ No supported Java packages were found.  A   │ 
│ supported Java package is one that installs │ 
│ a file of the form:                         │ 
│                                             │ 
│ /usr/lib/jvm/jre-$version-$vendor/bin/java  │ 
│                                             │ 
│ For example, java-1.4.2-gcj-compat is a     │ 
│ supported package because it installs:      │ 
│                                             │ 
│ /usr/lib/jvm/jre-1.4.2-gcj/bin/java         │ 
│                                             │ 
│                   ┌────┐                    │ 
│                   │ OK │                    │ 
│                   └────┘                    │ 
│                                             │ 
│                                             │ 
└─────────────────────────────────────────────┘ 


Expected results:
openjdk-1.7.0 appears in the list


Additional info:
It seems that some other Java package fixes the problem, but I haven't identified which one. Please use a minimal system to reproduce.

Comment 1 Omair Majid 2013-08-05 16:26:41 UTC
So system-switch-java is looking for /usr/lib/jvm/jre-1.7.0-openjdk but the latest F19 has /usr/lib/jvm/jre-1.7.0_openjdk.

That "_openjdk" at the end should be "-openjdk". I will prepare a fix.

Comment 2 Omair Majid 2013-08-07 15:49:59 UTC
*** Bug 990941 has been marked as a duplicate of this bug. ***

Comment 3 Omair Majid 2013-10-17 21:44:35 UTC
Jiri was kind enough to fix _openjdk to -openjdk. Now we are hitting bug 1020005.

Comment 4 Omair Majid 2014-02-04 16:56:34 UTC

*** This bug has been marked as a duplicate of bug 1020005 ***