After getting a new brand SD card… another stab at this…
I have used your instructions as follows:
sudo mkdir /opt/jdk/
cd /opt/jdk
sudo wget http://cdn.azul.com/zulu-embedded/bin/zulu8.31.1.122-jdk1.8.0_181-linux_aarch64.tar.gz
sudo tar -xzvf zulu8.31.1.122-jdk1.8.0_181-linux_aarch64.tar.gz
sudo update-alternatives --install /usr/bin/java java /opt/jdk/zulu8.31.1.122-jdk1.8.0_181-linux_aarch64/bin/java 181
sudo update-alternatives --install /usr/bin/javac javac /opt/jdk/zulu8.31.1.122-jdk1.8.0_181-linux_aarch64/bin/javac 181
sudo rm zulu8.31.1.122-jdk1.8.0_181-linux_aarch64.tar.gz
The commands above went well; however, these:
maxg@rpi3ohv2:/opt/jdk $ sudo apt purge zulu-embedded-8
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package zulu-embedded-8
maxg@rpi3ohv2:/opt/jdk $ java -version
-bash: /usr/bin/java: cannot execute binary file: Exec format error
ended in errors.
Unfortunately I have no clue on how to solve this.
Found your other post:
… which is essentially what you posted here.
Any hints appreciated.
Just noticed the owner of the directory:
drwxr-xr-x 3 root root 4096 Nov 12 20:51 .
drwxr-xr-x 4 root root 4096 Nov 12 20:43 ..
drwxrwxr-x 9 111 122 4096 Aug 1 05:14 zulu8.31.1.122-jdk1.8.0_181-linux_aarch64
111 and 112 – never seen this, should I change this to root?!