I want to run my Tomcat with Java 7 but all I found about configuring it doesn't work. The management interface of Tomcat shows 1.6.0_24-b24
as Java version. The JAVA_HOME
variable is empty.
% echo $JAVA_HOME
I understand that in this case Tomcat uses the system default Java, which should be 7.
% java -version
java version "1.7.0_09"
OpenJDK Runtime Environment (IcedTea7 2.3.3) (7u9-2.3.3-0ubuntu1~12.04.1)
OpenJDK 64-Bit Server VM (build 23.2-b09, mixed mode)
I changed it with update-alternatives
.
What part of the configuration am I missing?
Best Answer
Finally found the right configuration file my self. It is
/etc/default/tomcat
. There I was able to setand it works now.
Thanks for the help.