Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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
./catalina.sh: 1: eval: /usr/local/java/jre*/bin/java: not found

and its also not update database please help .

share|improve this question

1 Answer 1

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
    
@Rathode You will be accept my answer ? –  Dozortsev Anton Mar 6 at 16:57

Your Answer

 
discard

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.