The following instructions are valid for a default installation of Ubuntu 18.04.2 LTS preinstalled with gcc make perl

For JDK 12 the same works except I've only confirmed it with binutils-2.29 and binutils-2.32

Gist: https://gist.github.com/kay/3c7acff64ca25d9ed236c7e793eecf25