Meaningless Drivel is fun!
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

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?
Have you checked out Aspose?
subject: execute java programs in cron
It's not a secret anymore!