Description of problem:
The alternatives link installed by java-1.8.0-openjdk-headless point to /usr/lib/jvm/jre-1.8.0-openjdk.x86_64, but only /usr/lib/jvm/jre-1.8.0-openjdk (without .x86_64 suffix) is present.
Creating that directory by hand resolves the problem of /etc/alternatives/java not resolving to an existing file.
Also, no package owns /usr/lib/jvm/jre-1.8.0-openjdk and /usr/lib/jvm/jre-1.8.0-openjdk
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. rpm -e --nodeps java-1.8.0-openjdk-headless
2. yum install java-1.8.0-openjdk-headless
3. alternatives --list | grep jre_1.8.0
4. ls -l /usr/lib/jvm | grep jre-1.8.0
jre_1.8.0_openjdk auto /usr/lib/jvm/jre-1.8.0-openjdk-188.8.131.52-15.b12.fc21.x86_64
jre_1.8.0 auto /usr/lib/jvm/jre-1.8.0-openjdk.x86_64
but only /usr/lib/jvm/jre-1.8.0-openjdk and /usr/lib/jvm/jre-1.8.0-openjdk-184.108.40.206-15.b12.fc21.x86_64 exist
There shouldn't be a mismatch. Also, note that the openjdk link doesn't have an arch suffix.
*** This bug has been marked as a duplicate of bug 1130247 ***