Java8 on OSX Mojave
If you have brew installed (and who doesn't!) it's still easy enough to get an older version of Java running on your machine.
Recently I needed to get Java8 running on my Macbook Pro running OSX Mojave, all that was needed was a couple of brew commands.
Firstly brew tap to add the repository and brew cask to install Java8 from the newly added repo.
$ brew tap adoptopenjdk/openjdk $ brew cask install adoptopenjdk8
Check your Java version afterwards.
$ java -version openjdk version "1.8.0_252" OpenJDK Runtime Environment (AdoptOpenJDK)(build 1.8.0_252-b09) OpenJDK 64-Bit Server VM (AdoptOpenJDK)(build 25.252-b09, mixed mode)
There you go, easy peasy! Other versions are also available if needed from this repo.