how to install java jdk 8 on ubuntu 20.04 for spark code example Example: how to install java jdk 8 on ubuntu 20.04 for spark sudo mv spark-3.1.1-bin-hadoop3.2/ /opt/spark