I'm having issues getting a cron tab to run a java file every 5 minutes.
I have tried to create an executable script to see if that is what's needed:
My script and java file are both stored in
/usr/local/bin and this is what I have in my crontab:
*/5 * * * * /usr/local/bin/java-crontab.sh
This is what I have in my script
#!/bin/bash JAVA_HOME=usr/java/jdk1.6.0_40 export JAVA_HOME PATH=$JAVA_HOME/bin:$PATH export PATH java -jar /usr/local/bin/javatest.jar