I needed JDK 8 for Bazel. I ran
sudo apt-get install openjdk-8* on a freshly built Ubuntu 16.04.02 machine, but after installation
update-alternatives --config java show two paths:
opensdk-8* and then installed
apt-get openjdk-9* but the outcome was the same.
How do I get JDK 8?