1
We have a Tomcat 8 running on Debian 8/jessie.
When starting the tomcat using service tomcat8 start
we can see
INFO: Java Home: /usr/lib/jvm/java-7-openjdk-amd64/jre
In /etc/default/tomcat8
we have set
JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64/
In /etc/init.d/tomcat8
is JAVA_HOME
not set set explicity. Neither in setenv.sh
.
The environment variable JAVA_HOME
is not set.
Background: We have problems with compiling JSP files as the Tomcat can not find the java compiler. We suspect the wrong path for `JAVA_HOME? as it points only to the jre.
Where is JAVA_HOME
expanded to JAVA_HOME/jre
?
Thanks for your answer! We have problems with compiling JSP files as the Tomcat can not find the java compiler. We suspect the wrong path for JAVA_HOME as it points only to the jre. – Yeti – 2018-05-09T13:38:50.300
In that case, you should write an answer on your own, stating root cause and the solution. That would help community ! – C0deDaedalus – 2018-05-09T13:42:35.400
I will as soon as we have found a solution. :-) At the moment were are stack with the problem stated above in the question. I will try your answer and see if it helps. :-) – Yeti – 2018-05-09T13:45:25.873