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
- run update command
- install the JDK itself
- add java home variable
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
No comments:
Post a Comment