Just a note for anybody wondering how to set JAVA_HOME permenantly in Tomcat, the settings are located in /etc/environment

Though a hint is given on the turnkey tomcat page, it's not clear where these settings are.

[EDIT] I added a note to the help file located at /docs/tomcat-apache

Could a Moderator  delete this topic?

Replies (2)

Good on you for adding to the wiki

Reply 1

But we may as well leave this here too. Having too much info or info available in various places doesn't hurt I don't think.

modify file /etc/environment for use openjdk 1.6

Reply 2

set JAVA_HOME as follow:

JAVA_HOME="/usr/lib/jvm/java-6-openjdk-amd64"