title: crontab doesnt work for run java class
body: <p><strong>testjob.sh</strong></p>
  
  <pre><code>#!/bin/bash
  export JAVA_HOME=/usr/java/jdk1.6.0_07
  echo "Java Home is $JAVA_HOME"
  export CLASSPATH=.:..:$CLASSPATH:
  echo "Path is is $PATH"
  echo "CLASSPATH is is $CLASSPATH"
  $JAVA_HOME/bin/java  TestJob
  echo "$JAVA_HOME/bin/java  TestJob"
  </code></pre>
  
  <p><strong>crontab -e</strong></p>
  
  <pre><code>* * * * * /usr/testjob.sh  &gt;&gt; /usr/result.txt 2&gt;&amp;1
  </code></pre>
  
  <p>if i run shell script manually it runs fine but when it will run through crontab job, error will occur as class not found..</p>
  
  <p>please suggest..</p>