HowTo: Install Zulu Embedded Java on Raspberry Pi 3

I don’t believe so, instead one would have to download the <zulu_package>.tar.gz file from the website:

sudo mkdir /opt/jdk/
cd /opt/jdk
sudo wget <.tar.gz_download_link>
sudo tar -xzvf <zulu_package>.tar.gz
sudo update-alternatives --install /usr/bin/java java /opt/jdk/<zulu_package>/bin/java <priority>
sudo update-alternatives --install /usr/bin/javac javac /opt/jdk/<zulu_package>/bin/javac <priority>
sudo rm <zulu_package>.tar.gz
sudo apt purge zulu-embedded-8

Where <priority> is any integer number usually representing the version you’re downloading.

If there are multiple versions installed. You can select between them with:

sudo update-alternatives --config java
sudo update-alternatives --config javac

@mstormi has created a PR so that this can be done in openHABian.

2 Likes