References

Prerequisite

  1. Debian

Preperation

Check java version if exist

java -version

Install Java

apt-get update
apt-get install default-jdk

Check if Java has been properly installed

java -version