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:
[root@mohamed-pc ~]# 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:
mohamed@mohamed-pc ~]$ wget http://javadl.sun.com/webapps/download/AutoDL?BundleId=109700 -O Java-latest --2015-08-19 23:37:25-- http://javadl.sun.com/webapps/download/AutoDL?BundleId=109700 Resolving javadl.sun.com (javadl.sun.com)... 137.254.120.23 Connecting to javadl.sun.com (javadl.sun.com)|137.254.120.23|:80... connected. HTTP request sent, awaiting response... 302 Moved Temporarily
Extract the downloaded file:
[mohamed@mohamed-pc ~]$ 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/calendars.properties 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:
[root@mohamed-pc 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) [root@mohamed-pc plugins]#
II – Install the Java plugin
Install Java per user:
mkdir ~/.mozilla/plugins/ ln -s /opt/jre1.8.0_60/lib/amd64/libnpjp2.so ~/.mozilla/plugins/libnpjp2.so
Now close any running firefox and try again:
Done.