Bug 1659646

Summary: Installing OpenJDK 11 breaks alternatives javac
Product: Red Hat Enterprise Linux 7 Reporter: Mike Millson <mmillson>
Component: java-11-openjdkAssignee: jiri vanek <jvanek>
Status: CLOSED NOTABUG QA Contact: OpenJDK QA <java-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.6   
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-12-17 10:18:59 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 Mike Millson 2018-12-14 20:59:16 UTC
Description of problem:
Installing OpenJDK11 broke javac alternative.

Version-Release number of selected component (if applicable):
java-11-openjdk-headless-11.0.1.13-3.el7_6.x86_64
java-11-openjdk-11.0.1.13-3.el7_6.x86_64
java-11-openjdk-devel-11.0.1.13-3.el7_6.x86_64


Steps to Reproduce:
1. yum install java-11*
2. alternatives --config javac

Actual results:
# alternatives --config javac
failed to read link /usr/bin/javac: No such file or directory

Expected results:
Should see the menu to select the javac version.

Additional info:
I can manually create the link (have to run command 2x):
# alternatives --install /usr/bin/javac javac /usr/lib/jvm/java-11-openjdk-11.0.1.13-3.el7_6.x86_64/bin/javac 180191
failed to read link /usr/bin/javac: No such file or directory
# alternatives --install /usr/bin/javac javac /usr/lib/jvm/java-11-openjdk-11.0.1.13-3.el7_6.x86_64/bin/javac 180191

Then can successfully run alternatives:

# alternatives --config javac

There are 4 programs which provide 'javac'.

  Selection    Command
-----------------------------------------------
 + 1           java-1.7.0-openjdk.x86_64 (/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.201-2.6.16.1.el7_6.x86_64/bin/javac)
   2           java-1.8.0-openjdk.x86_64 (/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.191.b12-1.el7_6.x86_64/bin/javac)
*  3           /usr/java/jdk-11.0.1/bin/javac
   4           /usr/lib/jvm/java-11-openjdk-11.0.1.13-3.el7_6.x86_64/bin/javac

Enter to keep the current selection[+], or type selection number:

Comment 2 jiri vanek 2018-12-17 10:18:59 UTC
Acording to:

*  3           /usr/java/jdk-11.0.1/bin/javac

It is clear that you have installed oracle's RPMS. Oracle's ROMS are known tobe not compatible wiht anything reasonable on this planet.
You have deliberately crippled your system. There is no way how to help you.