Public Repository

Last pushed: 9 months 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 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

Docker Pull Command
Owner
whatever4711

Comments (0)