Quick & Easy: Install Zulu Java 11 on Raspberry Pi
Download Zulu Java
wget https://cdn.azul.com/zulu-embedded/bin/zulu11.45.27-ca-jdk11.0.10-linux_aarch32hf.tar.gz
sudo mkdir -p /usr/lib/jvm/ && sudo tar zxvf zulu11.45.27-ca-jdk11.0.10-linux_aarch32hf.tar.gz -C /usr/lib/jvm/
Configure Zulu Java as default
update-alternatives --install /usr/bin/java java /usr/lib/jvm/zulu11.45.27-ca-jdk11.0.10-linux_aarch32hf/bin/java 100
update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/zulu11.45.27-ca-jdk11.0.10-linux_aarch32hf/bin/javac 100
update-alternatives --display java && update-alternatives --display javac
Check if its installed
java -version && javac -version