title: Error with crontab running a jar file
body: <p>I'm running Ubuntu 10.10 with open jdk and crontab. I made a neat little Java application that does some cool stuff and exported it as a runnable jar file. I can run it from the command line just fine, but I needed something that would run the file once every day. So I wrote in a cron job to run a shell script that would actually invoke the jar file. The shell script works fine when run on its own and it looks something like this:</p>
  
  <pre><code>#!/bin/sh
  /usr/bin/java -jar /root/proj/CoolStuff.jar
  </code></pre>
  
  <p>Works perfectly. So I added this to the crontab:</p>
  
  <pre><code>23 14 * * * /root/proj/runScript.sh &gt; /root/proj/log.txt 2&gt;&amp;1
  </code></pre>
  
  <p>This does not run perfectly. In fact, it doesn't run. log.txt will come out saying "Error". Pretty nondescript, right? I've checked my environment variables, nothing fancy there. Is there anything else I might be missing? Any ideas as to where to go from here? Is there any way I can run this script everyday with ease?</p>