this scripts will automatically download musl-based OpenJDK to current directory
it works on my raspberry pi 3b+ , my Minecraft server(papermc) works fine too
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 type
java -version