If Not True Then False

Install Oracle Java 8u121 on Fedora 25/24, CentOS/RHEL 7.3/6.8/5.11 - Comment Page: 2

This is guide, howto Install Oracle (Sun) Java JDK and JRE 8 update 121 (8u121) on Fedora 25/24/23/22/21/20/19/18/17/16/15/14/13/12, CentOS 7.3/6.8/5.11, Red Hat (RHEL) 7.3/6.8/5.11. If you’re looking installation instruction for older Oracle Java versions, then check Install Sun/Oracle Java JDK/JRE 7 on Fedora 24/23/22/21/20/19, CentOS/Red Hat (RHEL) 7.2/6.8/5.11 or Install Sun/Oracle Java...

34 Comments

Leave a Comment

Your email address will not be published. Required fields are marked *

Input your comment.
help

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

Input your name.

Dino

Dear,
when i using
[quote]alternatives –install /usr/bin/javaws javaws /usr/java/latest/jre/bin/javaws 200000
[/quote]
report broken link
[quote]/etc/alternatives/javaws -> /usr/java/latest/jre/bin/javaws[/quote]
The correct path is
[quote]/usr/java/latest/bin/javaws[/quote]
Resolved with
[quote]ln -sf /usr/java/latest/bin/javaws /etc/alternatives/javaws[/quote]

reply Reply
JR

Hi Dino,

Did you noticed that there is JDK (4a) and JRE (4b) commands?

reply Reply
Fabio

Great tutorial, congratulations!!! :)
Just an additional information, if you were using Ferora 23 you probably have dnf command and can download Java and install it as follows “dnf install jdk-8u71-linux-x64.rpm” (current version at time I have tested). This does most of steps, you only need to do Firefox part, set javaws in alternatives if you want to switch between versions. Of corse Post-Installation Setup is also needed.

reply Reply
jaboneros

thank you, excellent tutorial and blog post. made my switch to Fedora so much easier!

reply Reply
Abhijit D

I ‘ve installed jdk-8u73-linux-x64.rpm on my centOS 6.7
but the version is showing java 7
why..??
and if I’ve to remove java 7 first.. then please tell me how can I do so..
as I am very new to Linux

reply Reply
Dan

great post.

I am having trouble installing java on another machine and I have gone through your steps but Firefox does not show the plugin. I can run java control panel and it says that java for browsers is enabled and has the correct location for run Firefox.
Any help would be great.

reply Reply
Dale

The existing openjdk entries include many lines of slaves. Is it important to add those lines for the Oracle JDK when adding it to alternatives?

reply Reply
Andreas Schöneck

There’s one additional issue with Oracle’s JDK:

It does not use Fedora’s global cacerts store which is located at /etc/pki/java/cacerts

You need to replace the file /usr/java/latest/jre/lib/security/cacerts with a symlink to /etc/pki/java/cacerts if you want to stay up-to-date with all the OS cacerts updates and/or are using the system mechanism to bring in custom CAs.

In Fedora’s bundled OpenJDK it is like that:
$ ls /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.102-1.b14.fc24.x86_64/jre/lib/security/cacerts -l
lrwxrwxrwx. 1 root root 41 25. Aug 17:26 /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.102-1.b14.fc24.x86_64/jre/lib/security/cacerts -> ../../../../../../../etc/pki/java/cacerts

reply Reply
Donnie

Yay google is my world beater aided me to find this outstanding sitee
! .

reply Reply