View Single Post
  #1 (permalink)  
Old 11-11-2007, 01:25 AM
rockie12 rockie12 is offline
Member
 
Join Date: Nov 2007
Posts: 3
rockie12 is on a distinguished road
how to run java app on windows in a cron like on unix
I am trying to run a java program every 10 minutes on my windows PC. If I run the program manually all works fine...

java myProgramName

Since windows does not support crontab type functionality, I have installed pycron and it runs my program every ten minutes, but I get a class not found error.

I have tried

0,10,20,30,40,50 * * * * javaw myPackage.com.myProgram


I have added my program to the system environment variable CLASSPATH, but still no success.

Any thoughts on how I can set up cron on windows to run my java application?

Thanks in advance for your assistance
Dean-O
Reply With Quote
Sponsored Links