This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes Java in General and the fly likes execute java programs in cron Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "execute java programs in cron" Watch "execute java programs in cron" New topic

execute java programs in cron

Thamaiyanthi Pitchaimuthu

Joined: Aug 20, 2010
Posts: 14
When I'm trying configure a java program in cron, it says java command not found.
How to get JAVA_HOME environment variable in cron?

Ed Ward
Ranch Hand

Joined: Jan 30, 2006
Posts: 147
Sounds lik a *NIX issue, but why not just write a short script which sets the env variables you need and execute the java proggi from it, then just have CRON execute your script?
I agree. Here's the link:
subject: execute java programs in cron
It's not a secret anymore!