We have met case with openjdk8 and tomcat9 packages on Ubuntu.
tomcat9 could not find java installation and prompted to set JAVA_HOME environment variable.
Actually one has to modify /etc/default/tomcat9 file and set JAVA_HOME there. Because global environment variables set in /etc/environment are ignored by tomcat9 service for some reason.
Environment
Description of the bug or enhancement
We have met case with openjdk8 and tomcat9 packages on Ubuntu. tomcat9 could not find java installation and prompted to set JAVA_HOME environment variable.
Actually one has to modify /etc/default/tomcat9 file and set JAVA_HOME there. Because global environment variables set in /etc/environment are ignored by tomcat9 service for some reason.
Need to reflect this in the documentation.