Skip to content

Java Installation – Ubuntu

Step-1: Environment

Ubuntu 16.04 LTS
Google Cloud Platform
Oracle Java

Step-2: Adding the Repository

$ sudo add-apt-repository ppa:webupd8team/java

Step-3: Update the repository cache

$ sudo apt-get update

Step-4: Installing Java 1.8.x

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

Step-5: Setting Environmental Variables

$ source /etc/profile.d/jdk.sh

Categories

java, Linux

Tags

,

Shashi View All

A passionate devops and automation engineer

Leave a comment