Try using the full path to Java, e.g. /usr/bin/java -jar. Depending on your setup, crontab might not have Java in it’s paths. Check the path with:
~$ which java
/usr/bin/java
I also encourage people to take a look at systemd.
Try using the full path to Java, e.g. /usr/bin/java -jar. Depending on your setup, crontab might not have Java in it’s paths. Check the path with:
~$ which java
/usr/bin/java
I also encourage people to take a look at systemd.