Bug#981337: tomcat9: cannot set JAVA_HOME in /etc/default/tomcat9 when using systemd service unit

Emmanuel Bourg ebourg at apache.org
Mon Feb 1 13:17:15 GMT 2021


Le 29/01/2021 à 15:09, Giuseppe Sacco a écrit :

> Dear Maintainer,
> on a debian stable new installation, changing the JAVA_HOME property in
> /etc/default/tomcat9 does not work, i.e. the java used is the default one.
> In order to set a non default JAVA_HOME I had to add the lines:
> 
> [Service}
> Environment="JAVA_HOME=/usr/lib/jvm/adoptopenjdk-8-hotspot-amd64"
> 
> in its override file, i.e. /etc/systemd/system/tomcat9.service.d/00_javahome.conf .

Hi Giuseppe,

This was fixed in the version 9.0.40-1 of the package. You can get it
from buster-backports.

Emmanuel Bourg



More information about the pkg-java-maintainers mailing list