Crontab not working for JAR file

I am trying to execute a JAR file periodically (let’s say every 10 minutes) in an Ubuntu environment. For that purpose, I am using the crontab command.

crontab -e
# m h  dom mon dow   command
1 * * * * /usr/bin/java -jar /home/vadmin/Desktop/executable.jar

I am using absolute paths, and the .jar has execution permissions. I don’t know why it is not working. Any suggestion will be appreciated. Am I using crontab in an incorrect way?

Thanks in advance


Source: ubuntu

Leave a Reply