When I'm trying to install elasticsearch (Ubuntu 16.04) I get the error message:
elasticsearch[15885]: * no JDK found - please set JAVA_HOME
But I have only one Java and I think JAVA_HOME is set properly...
$ echo $JAVA_HOME
/usr/lib/jvm/java-8-openjdk-amd64