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
0 comments:
Post a Comment