Most people i know (developers) they always suggesting me to install oracle java (oracle JDK) rather than open java (open JDK). They said it's more stable and performs better, i kinda agree with them. In this article i will show you how to install oracle java 8 on xubuntu 16.04.
Step by step how to install oracle java 8 on xubuntu 16.04
- open command line on xubuntu (press CTRL + ALT + T)
- add ppa repository for oracle java
- run update command
- install oracle java 8 installer
- export oracle java path to java_home variable
- check your oracle java by running this command
sudo apt-add-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
export JAVA_HOME=/usr/lib/jvm/java-8-oracle
java -version