Bug 1659646 - Installing OpenJDK 11 breaks alternatives javac
Summary: Installing OpenJDK 11 breaks alternatives javac
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: java-11-openjdk
Version: 7.6
Hardware: Unspecified
OS: Unspecified
Target Milestone: rc
: ---
Assignee: jiri vanek
QA Contact: OpenJDK QA
Depends On:
TreeView+ depends on / blocked
Reported: 2018-12-14 20:59 UTC by Mike Millson
Modified: 2018-12-17 10:18 UTC (History)
0 users

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed: 2018-12-17 10:18:59 UTC
Target Upstream Version:

Attachments (Terms of Use)

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):

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- 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- 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-
   2           java-1.8.0-openjdk.x86_64 (/usr/lib/jvm/java-1.8.0-openjdk-
*  3           /usr/java/jdk-11.0.1/bin/javac
   4           /usr/lib/jvm/java-11-openjdk-

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.

Note You need to log in before you can comment on or make changes to this bug.