How to install Java Oracle on Ubuntu 16.04 LTS

Install Java Oracle on Ubuntu

How to install Java Oracle on Ubuntu 16.04 LTS

This time I will give you a tutorial on how to install Java Oracle on Ubuntu 16.04 LTS. Oracle has released Java version 8 is stable and ready for install to Ubuntu 16.04. Java 8 already includes JDK / JRE which is necessary especially if you want to wear Android Studio on Ubuntu 16.04.

You no longer need to install Java 8 manual for Webupd8team formally presents and take care of PPA for Java. and you can install through their repositories.

Open a terminal:

PPA file of this repository will help you to install java 8 at 16.04 Ubuntu LTS and LinuxMint, for Kali Linux, Parrot, etc. You must first add the repository weupd8team manually.

Step 1: Install Java 8 (JDK 8)

For first, We add the PPA repository of webupd8team and install Java 8. Type the following command in the terminal sequentially.

$ sudo add-apt-repository ppa:webupd8team/java
$ sudo apt-get update
$ sudo apt-get install oracle-java8-installer

Step 2: Check the version of JAVA

(See also: What is malware CryptoPHP)

After the above process is successful, we check whether you have the correct version. Run the following command:

$ java -version

if successful, it would be like this:

java version “1.8.0_11”
Java(TM) SE Runtime Environment (build 1.8.0_111-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.111-b14, mixed mode)

Step 3: Setup JAVA Environment

Webupd8team also provides a package for automated setup environment variable. So do not worry about errors occur.

Run the following command.

$ sudo apt-get install oracle-java8-set-default

Java in Ubuntu already installed OpenJDK, but for the development of Android Studio and other, important matters should install it directly from Oracle. With the above command, Linux Java environment you will by default be set to Oracle Java.

How to install Java Oracle on Ubuntu 16.04 LTS
4.7 (93.33%) 3 votes

Follow Me

Asep Ulchre

This website written by single admin, he's like coffee, like the python programming language and art lovers.
Follow Me
%d bloggers like this: