Java OpenJDK 11 can make use of the apk (Alpine package installer),
# apk add openjdk11
fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/main/aarch64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/community/aarch64/APKINDEX.tar.gz
(1/30) Installing java-common (0.5-r0)
(2/30) Installing libffi (3.4.2-r1)
(3/30) Installing p11-kit (0.24.1-r0)
(4/30) Installing libtasn1 (4.18.0-r0)
(5/30) Installing p11-kit-trust (0.24.1-r0)
(6/30) Installing ca-certificates (20220614-r0)
(7/30) Installing java-cacerts (1.0-r1)
(8/30) Installing openjdk11-jre-headless (11.0.16.1_p1-r0)
...
(25/30) Installing openjdk11-jre (11.0.16.1_p1-r0)
(26/30) Installing openjdk11-jmods (11.0.16.1_p1-r0)
(27/30) Installing openjdk11-jdk (11.0.16.1_p1-r0)
(28/30) Installing openjdk11-demos (11.0.16.1_p1-r0)
(29/30) Installing openjdk11-doc (11.0.16.1_p1-r0)
(30/30) Installing openjdk11 (11.0.16.1_p1-r0)
Executing busybox-1.35.0-r17.trigger
Executing java-common-0.5-r0.trigger
Executing ca-certificates-20220614-r0.trigger
OK: 258 MiB in 44 packages
Based on your Alpine Linux version, you will get an ARM-based (supported by M1/M2 Silicon) or Intel-based JDK version.

Above is an example, where I installed OpenJDK 11 on Alpine Linux Image running on an M2 Mac
-
Facing issues? Have Questions? Post them here! I am happy to answer!
More Posts related to Java,
- Java equals method - Tutorial
- Unbound classpath container: JRE System Library [JavaSE-1.7]
- Spring Boot: @RequestBody not applicable to method
- Java 8: Steam map with Code Examples
- Java Program: Random Number Generator
- Java java.time.Clock class code examples [Java Date Time API]
- Fix: type argument is not within bounds of type-variable T
- [Fix] java.net.MalformedURLException: unknown protocol
- Java 7 addSuppression() and getSuppression() Exception Handling
- Convert Java Array to ArrayList Code Example
- How to Word-Warp Console logs in IntelliJ
- Ways Compare Dates in Java Programming with Examples
- Remove Trailing zeros BigDecimal Java
- CRUD operations in Spring Boot + JDBC
- [Java Threads] Should we extend Thread Class or implement Runnable interface
- Json Serialization and Deserialization using Java Jackson
- Create simple struts2 project using maven commands
- How to install Java OpenJDK 11 on Alpine Linux
- Unsupported major.minor version 52.0 in java
- Error: Can not find the tag library descriptor for
- Java: Convert String to Binary
- How to run Java Unit Test cases with Apache Maven?
- Java: Testing Private Methods in JUnit using reflection API Example
- Java JDBC Connection with MySQL Driver in VS Code + Troubleshooting
- Java Join Strings with Comma Separator
More Posts:
- Java - Check if array contains the value - Java
- Fix: Invalid Gradle JDK configuration found. Could not find the required JavaSDK - Gradle
- Drag drop files here option missing for SharePoint document library - SharePoint
- Android Activity Main xml stuck loading - Android-Studio
- Find your macOS version - MacOS
- Force convert HTML text input to upper case - Html
- Understanding AWS Calculator: DynamoDB on-demand capacity - AWS
- List of jar files for Jax-ws (SOAP) based Java Web Services - Java