I have scheduled my job to run every day at 12:30 with this command:
30 12 * * * java -jar test.jar
It throws error:
/bin/sh: 1: java: not found
I tried to run this command: java -jar test.jar
from shell and it worked just fine.
Now I don't understand. I would say it is happening because JAVA_HOME
environment variable is not set, but then why it works from shell?