- 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.
If you are interested in seeing some examples in Java 8, checkout my new blog about Java 8 Examples click on this link: Java 8 Examples
thankyou.
ReplyDeleteIt worked! Thankyou
ReplyDeleteThanks man,
ReplyDeletetrouble gone!