Installation of the JVM is quite simple. Download the most recent patch version of the JDK, and distribute it to the node(s) you are building via scp, wget, curl, or another method of orchestration.
With the JDK downloaded, untar it, and move it to a location other than your home directory. For the purposes of this example, we'll put it in /usr/local/:
sudo tar -zxvf jdk-8u171-linux-x64.tar.gzsudo mv jdk1.8.0_171 /usr/localsudo alternatives --install /usr/bin/java java /usr/local/jdk1.8.0_171/bin/java 1sudo alternatives --set java /usr/local/jdk1.8.0_171/bin/java
Alternatively, you can install the JDK via your Linux package management system. For Debian Linux, try:
sudo apt-get ...