sudo su
echo “deb Index of /webupd8team/java/ubuntu xenial main” | tee /etc/apt/sources.list.d/webupd8team-java.list
echo “deb-src Index of /webupd8team/java/ubuntu xenial main” | tee -a /etc/apt/sources.list.d/webupd8team-java.list
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys EEA14886
apt-get update
apt-get install oracle-java8-installer
exit
Regarding my.openhab:
I haven’t installed my.openhab yet, but AFAIK there is no need to make cfg file. You know this (official) thread?
Unfortunately the documentation on my.openhab.org still refers to an OH1 installation. But also the tutorial from Rich doesn’t mention any cfg file for my.openhab:
I would assume, when you update your java version, things will get going.