Install Zulu Java 11 in order to run openHAB 3 on Raspberry Pi 4

I’ve been struggling to install Zulu Java 11 and I’ve searched everywhere and cannot find a solution. I assumed it would be simple :grimacing:

I have a manual install of openhab 3 on a raspberry pi 4.

I was hoping I could just apt-get install zulu-11 …

Anyway I tried to find the package and install manually but that did not work. If anyone knows of a solution or can point me to one that would be great thanks.

#go to folder
/usr/lib/jvm

#download
wget -c https://cdn.azul.com/zulu-embedded/bin/zulu11.43.100-ca-jdk11.0.9.1-linux_aarch64.tar.gz

#unpack
sudo tar -xzvf zulu11.43.100-ca-jdk11.0.9.1-linux_aarch64.tar.gz

#create alternative
sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/zulu11.43.100-ca-jdk11.0.9.1-linux_aarch64/bin/java 100

#update to new alternative
sudo update-alternatives --config java

#check version
java -version

I just get an error and nothing works

-bash: /usr/bin/java: cannot execute binary file: Exec format error