Apache tomcat 10 not detecting JAVA_HOME

Hi

I have configured apache tomcat 10 via pkg and it works fine except the Java version is not correct despite me adding eh java home variable in the setenv.sh file in the bin directory as follows:

export JAVA_HOME="/usr/local/openjdk21"

I have also set it in rc.conf but still no luck unclear what the issue could be
 
Don't know if you still have the problem after almost a year, but here is the solution:
In addition to
tomcat101_enable="YES"
in /etc/rc.conf, also add the following line
tomcat101_java_home="/usr/local/openjdk21"
 
Back
Top