in ur java class ur specfying some thing to print on console but may be there may be no console
opened to print ur s.o.println from crontab u can't start application which have GUI interface if u really want to start up like then install screen.rpm and in the crontab before the script calling specify it as
Compare that to the contents of /tmp/cronout. Are they the same? If not, do this ONCE:
echo "#!/bin/sh" > /tmp/tmpfile
echo "CLASSPATH=$CLASSPATH" >> /tmp/tmpfile
echo "export CLASSPATH" >> /tmp/tmpfile
cd /to/directory/where/your/CronJava.txtfile/is
cat CronJava.txt >> /tmp/tmpfile
# If you get any errors during the above actions, STOP. Try to fix them. Retry commands. If everything looks ok, then,
cp /tmp/tmpfile CronJava.txt