JRE vs JDK – pt 2

All

Intro

JRE and JDK what is the difference and why it’s a bit confusing! lol!

The diagram below summarizes: basically, JDK is a superset of JRE.

CBNux.png

What does the diagram above mean?

Well, if you want to use Tool and Tools API, you will need JDK. Dot.

 

Use the commands below to install JRE and JDK

JRE

OpenJRE

sudo apt-get install openjdk-8-jre

JDK

OracleJDK

sudo apt-get install oracle-java8-installer

OpenJDK

sudo apt-get install openjdk-8-jdk

Setting JAVA_HOME

echo “JAVA_HOME=$(which java)” | sudo tee -a /etc/environment

 

REFs

Leave a comment