How to Install Java 8 In Manjaro/Archlinux

I have decided to write some articles for Manjaro or ArchLinux users. I am going to start from basic small things like Java or Flash players, and then make other tutorials about Servers etc.

In this tutorial, I am going to give some simple steps to install Java 8 without using Pacman or Yaourt.

I – Install Java JRE

My testing system details:
[[email protected] ~]# uname  -a  
Linux mohamed-pc 4.1.5-1-MANJARO #1 SMP PREEMPT Tue Aug 11 05:14:23 UTC 2015 x86_64 GNU/Linux
Update your system:
# pacman -Sy
Diownload Java 8 from Oracle site:
[email protected] ~]$ wget -O Java-latest   
--2015-08-19 23:37:25-- 
Resolving ( 
Connecting to (||:80... connected. 
HTTP request sent, awaiting response... 302 Moved Temporarily
Extract the downloaded file:
[[email protected] ~]$ tar -zxvf   Java-latest   jre1.8.0_60/ jre1.8.0_60/LICENSE jre1.8.0_60/THIRDPARTYLICENSEREADME-JAVAFX.txt jre1.8.0_60/README jre1.8.0_60/lib/ jre1.8.0_60/lib/fontconfig.RedHat.6.bfc jre1.8.0_60/lib/fontconfig.SuSE.10.bfc jre1.8.0_60/lib/ jre1.8.0_60/lib/locale/ jre1.8.0_60/lib/locale/zh_TW.BIG5/ jre1.8.0_60/lib/locale/zh_TW.BIG5/LC_MESSAGES/ jre1.8.0_60/lib/locale/zh_TW.BIG5/
Move or copy the extracted folder to /opt:
sudo cp -pr jre1.8.0_60 /opt
Make sym link for all users:
ln -s /opt/jre1.8.0_60/bin/java /usr/bin/java
Now Test If java Installed:
[[email protected] plugins]# 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) [[email protected] plugins]# 

II – Install the Java plugin

Install Java per user:

mkdir  ~/.mozilla/plugins/ ln  -s /opt/jre1.8.0_60/lib/amd64/  ~/.mozilla/plugins/

Now close any running firefox and try again: