i have .jar can run via command line.
i need running continuosly every 5 mins, did crontab -e added line
*/5 * * * * java -jar /var/www/java/executable.jar
if go
grep cron /var/log/syslog
i see job executed, never since have logger inside java file , first thing append logger time, not doing so.
what can possible error?
the common error environment-variables not bound and
- java not in path
- java_home not set.
try
*/5 * * * * java -jar /var/www/java/executable.jar > /var/log/javacron.log 2> /var/log/javacron-err.log
and inspect /var/log/javacron.log
-file more informations.