How to Install Oracle Java 8 in Arch Linux

Datetime:2016-08-23 00:38:15          Topic: Oracle  Java8           Share

This brief tutorial will show you how to install Oracle Java 8 in Arch Linux 2016. We can install Oracle Java either from source or using any pacman front-ends such as Yaourt or Packer . However, Installing Java using Yaourt or Packer is the simplest way.

Let us get started.

First update your Arch Linux system using command:

sudo pacman -Syyu

Then, install Yaourt or Packer. Just install any one of these tools.

Install Oracle Java 8 in Arch Linux

After installing Yaourt or Packer, search for the available Java versions. In this tutorial, I will be using Packer, but the steps given in this guide is also same for Yaourt tool.

Search available Oracle Java versions using command:

yaourt jdk

Or

packer jdk

Sample output:

0 extra/jdk7-openjdk 7.u101_2.6.6-1
 OpenJDK Java 7 development kit
1 extra/jdk8-openjdk 8.u92-1
 OpenJDK Java 8 development kit
2 extra/jre7-openjdk 7.u101_2.6.6-1
 OpenJDK Java 7 full runtime environment
3 extra/jre7-openjdk-headless 7.u101_2.6.6-1
 OpenJDK Java 7 headless runtime environment
4 extra/jre8-openjdk 8.u92-1
 OpenJDK Java 8 full runtime environment
5 extra/jre8-openjdk-headless 8.u92-1
 OpenJDK Java 8 headless runtime environment
6 extra/openjdk7-doc 7.u101_2.6.6-1
 OpenJDK Java 7 documentation
7 extra/openjdk7-src 7.u101_2.6.6-1
 OpenJDK Java 7 sources
8 extra/openjdk8-doc 8.u92-1
 OpenJDK Java 8 documentation
9 extra/openjdk8-src 8.u92-1
 OpenJDK Java 8 sources
10 extra/visualvm 1.3.8-1
 Visual tool integrating several commandline JDK tools and lightweight profiling capabilities
11 infinality-bundle/jdk8-openjdk-infinality 8.u92-1
 OpenJDK Java 8 development kit with infinality patch applied
12 infinality-bundle/jre8-openjdk-headless-infinality 8.u92-1
 OpenJDK Java 8 headless runtime environment with infinality patch applied
13 infinality-bundle/jre8-openjdk-infinality 8.u92-1
 OpenJDK Java 8 full runtime environment with infinality patch applied
14 aur/jdk 8u92-1 (681)
 Oracle Java Development Kit
15 aur/jdk7 7u79-4 (128)
 Oracle Java 7 Development Kit (public release - end of support)
16 aur/jdk6 6u45-4 (71)
 Oracle Java 6 Development Kit (public release - end of support)
17 aur/jdk-docs 8u92-1 (44)
 Documentation for Oracle Java Development Kit
18 aur/jre7-openjdk-infinality 7.u101_2.6.6-1 (29)
 OpenJDK Java 7 full runtime environment
19 aur/jre7-openjdk-headless-infinality 7.u101_2.6.6-1 (29)
 OpenJDK Java 7 headless runtime environment
20 aur/jdk7-openjdk-infinality 7.u101_2.6.6-1 (29)
 OpenJDK Java 7 development kit
21 aur/jdk-devel 9b123-1 (20)
 Oracle Java 9 Development Kit Snapshot
22 aur/jre8-openjdk-infinality 8.u92-1 (18)
 OpenJDK Java 8 full runtime environment with infinality patch applied
23 aur/jre8-openjdk-headless-infinality 8.u92-1 (18)
 OpenJDK Java 8 headless runtime environment with infinality patch applied
24 aur/jdk8-openjdk-infinality 8.u92-1 (18)
 OpenJDK Java 8 development kit with infinality patch applied
25 aur/jdk7-docs 7.80-1 (11)
 Java SE Development Kit Documentation 7
26 aur/bin32-jdk 8u92-1 (8)
 Oracle Java Development Kit (32-bit)
27 aur/jdk-arm 8u91-1 (7)
 Oracle Java Development Kit (v8) for ARMv7, ARMv6 and ARMv8 (64-bit)
28 aur/jdk-demos 8u92-1 (6)
 Demos and samples of common tasks and new functionality in Oracle Java 8 Development Kit
29 aur/bin32-jdk7 7u79-3 (4)
 Oracle Java 7 Development Kit (32-bit) (public release - end of support)
30 aur/jdk5 5u22-1 (3)
 Oracle Java 5 Development Kit (public release - end of support)
31 aur/ldapjdk 4.18-3 (2)
 The Mozilla LDAP Java SDK
32 aur/jdk6-docs 6u30-1 (2)
 Documentation for Oracle Java 6 Development Kit
33 aur/bin32-jdk6 6u45-5 (2)
 Oracle Java 6 Development Kit (32-bit) (public release - end of support)
34 aur/tuxjdk-src 8.92.03-1 (1)
 OpenJDK Java 8 sources
35 aur/tuxjdk-doc 8.92.03-1 (1)
 OpenJDK Java 8 documentation
36 aur/tuxjdk 8.92.03-1 (1)
 Enhanced Open Java Development Kit for developers on Linux. Contains series of patched to OpenJDK to enhance user experience with Java-based
 and Swing-based tools (NetBeans, Idea, Android Studio, etc)
37 aur/jre8-openjdk-jetbrains-git 8.u76.b03.r6.g8818da1-1 (1)
 OpenJDK Java 8 full runtime environment with JetBrains modifications
38 aur/jre8-openjdk-headless-jetbrains-git 8.u76.b03.r6.g8818da1-1 (1)
 OpenJDK Java 8 headless runtime environment with JetBrains modifications
39 aur/jdk-devel-docs 9b123-1 (1)
 Documentation for Oracle Java 9 Development Kit Snapshot
40 aur/jdk8-openjdk-jetbrains-git 8.u76.b03.r6.g8818da1-1 (1)
 OpenJDK Java 8 development kit with JetBrains modifications
41 aur/bin32-jdk5 5u22-1 (1)
 Oracle Java 5 Development Kit (32-bit) (public release - end of support)
42 aur/java8-openjdk-hsdis 8.u92-1 (0)
 Disassembler for HotSpot
43 aur/denix-jdk8 8u77-1 (0)
 Oracle Java 8 Development Kit (in /opt for servers)
44 aur/bin32-jdk-devel 9b123-1 (0)
 Oracle Java 9 Development Kit Snapshot (32-bit)

Type numbers to install. Separate each number with a space.
Numbers:

Search Oracle Java packages

As you see in the above output, these commands displays the list of available Oracje JDK and JRE versions. Just type the number of your choice.

Here, I chose number : 43 .

During installation, you will be asked to enter the password of the administrative account. Enter the password and wait for few moments to complete the installation.

After the installation is over, check the java version using command:

java -version

Sample output:

java version "1.8.0_77"
Java(TM) SE Runtime Environment (build 1.8.0_77-b03)
Java HotSpot(TM) 64-Bit Server VM (build 25.77-b03, mixed mode)

Display Java version

As you see in the above output, Oracle Java has been installed.

That’s it. If you find this guide useful, please share it on your social networks and support us.

I will be here soon with another article soon. Until then, stay tuned with OSTechNix.

Cheers!





About List