Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When I shutdown tomcat on server it show following error

Using CATALINA_BASE:   /usr/local/tomcat7/apache-tomcat-7.0.52
Using CATALINA_HOME:   /usr/local/tomcat7/apache-tomcat-7.0.52
Using CATALINA_TMPDIR: /usr/local/tomcat7/apache-tomcat-7.0.52/temp
Using JRE_HOME:        /usr/local/java/jre*
Using CLASSPATH:       /usr/local/tomcat7/apache-tomcat-7.0.52/bin/bootstrap.jar:/usr/local/tomcat7/apache-tomcat-7.0.52/bin/tomcat-juli.jar
./ 1: eval: /usr/local/java/jre*/bin/java: not found

and its also not update database please help .

share|improve this question

You need set the JAVA_HOME path us environment variables. Add in shell config file /etc/bash.bashrc path variables. For do this just run follow command in terminal:

sudo nano /etc/bash.bashrc

And copy & past follow code in bottom of the file:

export JAVA_HOME=/usr/lib/jvm/jdk1.7.0
export PATH=$PATH:$JAVA_HOME/bin

Also visit: How to set JAVA_HOME in Ubuntu?.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.