Sign inSign up

whatever4711/rpi-java

By whatever4711

•Updated almost 10 years ago

Oracle Java 8 on Alpine Linux for 32-bit ARM boards

Image
0

10K+

whatever4711/rpi-java repository overview

⁠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

Tag summary

Content type

Image

Digest

Size

63.2 MB

Last updated

almost 10 years ago

docker pull whatever4711/rpi-java