- no JDK found - please set JAVA_HOME
#Java Environment Variable
JAVA_HOME=/usr/lib/jvm/jdk1.7.0/
export JAVA_HOME
JRE_HOME=/usr/lib/jvm/jdk1.7.0/jre
export JRE_HOME
PATH=$PATH:$JAVA_HOME:$JRE_HOME
export PATH
Now, normally, after reopening the terminal and issuing " sudo service tomcat7 start" should start the tomcat. But if you see the error above again:
- no JDK found - please set JAVA_HOME
Just to this:
"gksudo gedit /etc/default/tomcat7"
and uncomment the line that sets the JAVA_HOME variable:
Now run the tomcat. This should do the trick.