aspose file tools*
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
JavaRanch » Java Forums » Java » Java in General
Bookmark "execute java programs in cron" Watch "execute java programs in cron" New topic
Author

execute java programs in cron

Thamaiyanthi Pitchaimuthu
Greenhorn

Joined: Aug 20, 2010
Posts: 14
Hi,
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?

thanks,
thamayanthi
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?
 
jQuery in Action, 2nd edition
 
subject: execute java programs in cron