title: How I should fix java-path, in order to run tomcat?
body: <p>I installed tomcat, set variables <code>CATALINA_HOME=/opt/tomcat and CATALINA_BASE=/opt/tomcat</code>. in terminal I entered command which java and got response <code>/usr/bin/java</code>. So how I understand this is path for JAVA_HOME. I set it. When I start tomcat  in terminal with <code>$CATALINA_HOME/bin/startup.sh</code> I get response:</p>
  
  <pre><code>Using CATALINA_BASE:   /opt/tomcat
  Using CATALINA_HOME:   /opt/tomcat
  Using CATALINA_TMPDIR: /opt/tomcat/temp
  Using JRE_HOME:        /usr/bin/java
  Using CLASSPATH:       /opt/tomcat/bin/bootstrap.jar:/opt/tomcat/bin/tomcat-juli.jar
  Tomcat started.
  </code></pre>
  
  <p>But when I check, I see that tomcat wasn't started and in logs I found:</p>
  
  <pre><code>/opt/tomcat/bin/catalina.sh: 1: eval: /usr/bin/java/bin/java: not found
  </code></pre>
  
  <p>I suppose,that something wrong with path to java. How can I fix it?
  PS everyhing was performed in Ubuntu OS</p>