1. Add ppa then install it

# sudo add-apt-repository ppa:webupd8team/java
# sudo apt-get update
# sudo apt-get install oracle-java8-installer
Sign up for free and join this conversation.
Sign Up
If you already have a Qiita account log in.