Skip to content

Instantly share code, notes, and snippets.

View KingKevin23's full-sized avatar
💭
being the King

KingKevin23

💭
being the King
View GitHub Profile
@KingKevin23
KingKevin23 / openjdk-12-pi-3-guide.txt
Created March 29, 2021 14:37 — forked from NotAlexNoyle/openjdk-12-pi-3-guide.txt
A step-by-step tutorial on installing OpenJDK 12 on a Raspberry Pi 3 running Raspbian
Do you use your Raspberry Pi 3 to develop Java applications using OpenJDK? You may have noticed that the latest version available on the default apt repositories is OpenJDK 9. This is because the armhf architecture is underserved by the Oracle open source community. Luckilly, you can build and run the latest version (OpenJDK 12.x) on your device. It will just take some time, given the minimal power of the Pi 3's CPU.
The first step is to boot into raspbian and launch the shell.
Next, we are going to create 1GB of swap space for the build.
Get the 'pv' package:
> sudo apt-get install pv