Oracle Java 8 on Alpine Linux for 32-bit ARM boards
10K+
Currently, this is a docker image based on Hypriot's Alpine Linux (hypriot/rpi-alpine-scratch)
docker run --rm whatever4711/rpi-java
This command displays the version of the Oracle's Java JDK installed inside the container.
class Hello {
public static void main(String[] a) {
System.out.println("Hello world!");
}
}
Save the code to a file named Hello.java in folder src.
To compile the code run:
docker run -it --rm -v $PWD/src:/src --entrypoint=javac whatever4711/rpi-java /src/Hello.java
To execute the new Java class run:
docker run --rm -v $PWD/src:/src whatever4711/rpi-java -cp /src Hello
Content type
Image
Digest
Size
63.2 MB
Last updated
almost 10 years ago
docker pull whatever4711/rpi-java