Saturday, December 31, 2016

How to install Oracle Java on Ubuntu

There are two kinds of java, oracle java JDK and open JDK, you can install both on ubuntu, but only one will be active JDK at one time. This article is about installing oracle java development kit (JDK) on ubuntu.

Step by step how to install Oracle JDK on Ubuntu
  • add PPA repo for oracle JDK
  • sudo apt-add-repository ppa:webupd8team/java
  • run update command
  • sudo apt-get update
  • install the JDK itself
  • sudo apt-get install oracle-java8-installer
  • add java home variable
  • export JAVA_HOME=/usr/lib/jvm/java-8-oracle
That's it now you have java installed on your ubuntu, you are ready to do anything! sky is the limit.

No comments:

Post a Comment