• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

execute java programs in cron

 
Thamaiyanthi Pitchaimuthu
Greenhorn
Posts: 14
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 147
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic