Install Java

Install Java SE Development Kit 10.0.1 on Ubuntu 18.04 LTS x64

Download: jdk-10.0.1_linux-x64_bin.tar.gz

You might need to reboot your system.