It seems all good things start with installing JDK 8...
This guide covers installing JDK 8 on several Linux distros I use.
Guide
You can install can install openJDK or Oracle's official JDK (note you only need one of these). I
Ubuntu / Debian
To install openJDK:
sudo apt-get update sudo apt-get install default-jdk
To install Oracle JDK8, you can add Oracle's ppa and do the install:
sudo add-apt-repository ppa:webupd8team/java sudo apt-get update sudo apt-get install oracle-java8-installer sudo update-alternatives --config java
Arch / Manjaro
In Arch / Manjaro, we can install the openJDK with pacman:
sudo pacman -S jdk8-openjdk
For oracle's JDK 8, we'll need to install with yaourt
or packer
as it is not in the normal pacman
repos:
yaourt jdk
Then select jdk8
for the options that follows (was item 42 for me).
References
- https://www.digitalocean.com/community/tutorials/how-to-install-java-with-apt-get-on-ubuntu-16-04
- https://www.ostechnix.com/install-oracle-java-8-arch-linux/
Related articles