This scripts will automatically download musl-based OpenJDK to current directory
The release page provides compressed tar files for offline installation. These tar file are just untar and tar back gzip tarballs
It works on my raspberry pi 3b+ , my Minecraft server(papermc) works fine as well.
Inspired from Reinhart Previano s' blog , update packages links
run ./dljdk8.sh
or ./dljdk11.sh
- go to Release page to download OpenJDK according to your architecture
- Make a directory for the JDK:
mkdir -p /usr/lib/jvm
- Extract the archive:
tar zxvf openjdk-version_arch.tar.gz -C /usr/lib/jvm
- add
export PATH="/usr/lib/jvm/bin:$PATH"
to/etc/profile
- reboot and then test java with
java --version
Error relocating /usr/lib/jvm/lib/aarch32/jli/libjli.so: __dlsym_time64: symbol not found
Error relocating /usr/lib/jvm/lib/aarch32/jli/libjli.so: __gettimeofday_time64: symbol not found
Error relocating /usr/lib/jvm/lib/aarch32/jli/libjli.so: __stat_time64: symbol not found
As mentioned in #1, this is probably is because your device is using musl version older than v1.2.0.
in that case you will need to use the alpine package before v3.13, which still uses musl 1.1.
here is a install script written by Sergey Ponomarev
This repo is no longer actively maintained as I stopped tinkering around on my router.