How to install Oracle Java 8 JRE on Fedora 22

September 10, 2015 | By | Reply More

This tutorial is going to show you how to install the most recent Oracle Java 8u60 on Fedora 22/Fedora 21. This guide also applicable to the following systems: CentOS 7, CentOS 6, RHEL 7 and RHEL 6. On this tutorial, I will only show the 64 bit version. But the other version such as 32 bit is similar.

A. Download Oracle Java package.

Download the Oracle Java (JRE) from this link. Select the paltform (32 bit or 64 bit).

oracle java jre download

You will have a RPM file called: jre-8u60-linux-x64.rpm. We’re going to install this package.

B. Install the Package

Install the rpm file we’ve just downloaded using the following command

su
rpm -Uvh /home/gamblisfx/Downloads/jre-8u60-linux-x64.rpm

Off course you will need to change the download location. Change it with your own location.

install java jre on fedora 22Check if Java correctly installed

java -version

Output:

[root@fedora bin]# java -version
java version “1.8.0_60”
Java(TM) SE Runtime Environment (build 1.8.0_60-b27)
Java HotSpot(TM) 64-Bit Server VM (build 25.60-b23, mixed mode)

C. Integrate Oracle Java with Mozilla Firefox

Use this command as root to integrate Oracle Java to web browser such as Mozilla Firefox.

ln -s /usr/java/jre1.8.0_60/lib/amd64/libnpjp2.so /usr/lib64/mozilla/plugins/libjavaplugin.so

Check if the plugin is well configured on Mozilla. Open Firefox and type about:plugins. You should see Java shown on the page as follow

install oracle java on fedora 22

 

Tags: , , ,

Category: Fedora

Leave a Reply