Difficulty: Beginner
Estimated Time: 10 minutes

Markdown editor for creating steps

Changes are automatically saved.

Code can be marked as user-executable via your code here

Don’t stop now! The next scenario will only take about 10 minutes to complete.

log-docker

Step 1 of 2

Install Java8

apt-get install gcj-4.8-jre-headless -y

Install software repos service

sudo apt-get -y -q install software-properties-common htop

sudo add-apt-repository ppa:webupd8team/java

sudo add-apt-repository ppa:openjdk-r/ppa

Update the repository

apt-get -y -q update

Install jdk

apt-get install openjdk-8-jre-headless -y

Set Java Home variable

JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64