File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 REST with Spring (video course) this week in the Spring 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!