Public Repository

Last pushed: 2 years ago
Short Description
Oracle Java 8 on Alpine Linux for 32-bit ARM boards
Full Description

Oracle Java on Alpine Linux for ARM boards

Currently, this is a docker image based on Hypriot's Alpine Linux (hypriot/rpi-alpine-scratch)

Starting the container

docker run --rm whatever4711/rpi-java
This command displays the version of the Oracle's Java JDK installed inside the container.

Running a Java Application

class Hello {
    public static void main(String[] a) {
        System.out.println("Hello world!");     

Save the code to a file named in folder src.

To compile the code run:
docker run -it --rm -v $PWD/src:/src --entrypoint=javac whatever4711/rpi-java /src/

To execute the new Java class run:
docker run --rm -v $PWD/src:/src whatever4711/rpi-java -cp /src Hello

Docker Pull Command